]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: pass boolean literals as the last argument to inc_block_group_ro()
authorFilipe Manana <fdmanana@suse.com>
Mon, 2 Feb 2026 16:50:18 +0000 (16:50 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:52 +0000 (18:55 +0200)
commitc4d30088fa28289aaf05ab421864ef8573ba9717
tree0b828293eaeaf65a620f9bab9812cb24aeb3ae9c
parent1ba19a6ea9f27ea383560d3ead6d8f5b773aff33
btrfs: pass boolean literals as the last argument to inc_block_group_ro()

The last argument of inc_block_group_ro() is defined as a boolean, but
every caller is passing an integer literal, 0 or 1 for false and true
respectively. While this is not incorrect, as 0 and 1 are converted to
false and true, it's less readable and somewhat awkward since the
argument is defined as boolean. Replace 0 and 1 with false and true.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
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/block-group.c