]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: add and use a log root field to struct walk_control
authorFilipe Manana <fdmanana@suse.com>
Tue, 26 Aug 2025 16:25:56 +0000 (17:25 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:17 +0000 (08:49 +0200)
commitefa44fc4fde3eb60da436d31707c00f6c182a6c8
treed20ee67916fdae60c2cb75f996d9158caa2e4693
parent60ac80242be1ce5e75f7f1e79f0d02996702388c
btrfs: add and use a log root field to struct walk_control

Instead of passing an extra log root parameter for the log tree walk
functions and callbacks, add the log tree to struct walk_control and
make those functions and callbacks extract the log root from that
structure, reducing the number of parameters. This also simplifies
further upcoming changes to report log tree replay failures.

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