]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: use booleans in walk control structure for log replay
authorFilipe Manana <fdmanana@suse.com>
Tue, 26 Aug 2025 15:12:53 +0000 (16:12 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:17 +0000 (08:49 +0200)
commit6803bff896ef96c9b2ee436d9e4f17ba7357d601
tree6f573429a8832fc0053badcaca065dca5f6c2d52
parentea77a1c1c78942578a2f6995d60757c34fe50980
btrfs: use booleans in walk control structure for log replay

The 'free' and 'pin' member of struct walk_control, used during log replay
and when freeing a log tree, are defined as integers but in practice are
used as booleans. Change their type to bool and while at it update their
comments to be more detailed and comply with the preferred comment style
(first word in a sentence is capitalized, sentences end with punctuation
and the comment opening (/*) is on a line of its own).

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