]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: pass walk_control structure to overwrite_item()
authorFilipe Manana <fdmanana@suse.com>
Thu, 28 Aug 2025 16:04:40 +0000 (17:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:19 +0000 (08:49 +0200)
commit266967c0e225fe164819fa655a0829db8506ddde
tree2b4697f67cf9326a635d56149602508625809db3
parentaa5b6635b0e6e059badf8f16a431c5647105383e
btrfs: pass walk_control structure to overwrite_item()

Instead of passing the transaction and subvolume root as arguments to
overwrite_item(), pass the walk_control structure as we can grab them
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.

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