]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: pass walk_control structure to replay_dir_deletes()
authorFilipe Manana <fdmanana@suse.com>
Wed, 27 Aug 2025 15:10:39 +0000 (16:10 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:18 +0000 (08:49 +0200)
commit82d1db6f465748d914cc95fb550ed786119f2925
tree5c2fb75695fc7739339859eb992409e7e5c562b0
parent94a5ac668a49c4fc1bd8e35a3c717ba0ae9f7cf8
btrfs: pass walk_control structure to replay_dir_deletes()

Instead of passing the transaction, subvolume root and log tree as
arguments to replay_dir_deletes(), pass the walk_control structure as
we can grab all of those from the structure. This reduces the number of
arguments passed and it's going to be needed by an incoming change that
improves error reporting for log replay. This also requires changing
fixup_inode_link_counts() and fixup_inode_link_count() to take that
structure as an argument since fixup_inode_link_count() makes a call
to replay_dir_deletes().

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c