]> Gentwo Git Trees - linux/.git/commit
btrfs: pass walk_control structure to drop_one_dir_item() and helpers
authorFilipe Manana <fdmanana@suse.com>
Thu, 28 Aug 2025 15:40:48 +0000 (16:40 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:19 +0000 (08:49 +0200)
commitaa5b6635b0e6e059badf8f16a431c5647105383e
treefaa6e8243e608630799b9981665764fd13f12b83
parent744e0cebb4fa51fcca2d9d916dd3a8d353e2e6d1
btrfs: pass walk_control structure to drop_one_dir_item() and helpers

Instead of passing the transaction as an argument to drop_one_dir_item()
and its helpers (link_to_fixup_dir() and unlink_inode_for_log_replay()),
pass the walk_control structure as we can access the transaction from it
and the subvolume root. This is going to be needed by an incoming change
that improves error reporting for log replay and also reduces the number
of arguments passed to link_to_fixup_dir().

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