OSDN Git Service

btrfs: rename root fields in delayed refs structs
authorNikolay Borisov <nborisov@suse.com>
Tue, 12 Oct 2021 08:21:33 +0000 (11:21 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:06 +0000 (19:08 +0200)
commit113479d5b8eb20d685da63b89e97b6ebb4206f15
tree2ac93c7120422c0cc33ce92405c86692bff6ebb9
parent0e24f6d84b4ca50780c0c55dcdfc5bdeda5c7014
btrfs: rename root fields in delayed refs structs

Both data and metadata delayed ref structures have fields named
root/ref_root respectively. Those are somewhat cryptic and don't really
convey the real meaning. In fact those roots are really the original
owners of the respective block (i.e in case of a snapshot a data delayed
ref will contain the original root that owns the given block). Rename
those fields accordingly and adjust comments.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c
fs/btrfs/ref-verify.c