]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: pass literal booleans to functions that take boolean arguments
authorFilipe Manana <fdmanana@suse.com>
Tue, 10 Feb 2026 12:18:50 +0000 (12:18 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:56 +0000 (18:55 +0200)
commit6fa972956830b17b0bf905a5b3da87517300dc0b
tree3ad25e54b6af350fda85ab3acdf2617f8e1e5027
parent521f8672b6b34a8959f8b5a5859364e52aa1ba8a
btrfs: pass literal booleans to functions that take boolean arguments

We have several functions with parameters defined as booleans but then we
have callers passing integers, 0 or 1, instead of false and true. While
this isn't a bug since 0 and 1 are converted to false and true, it is odd
and less readable. Change the callers to pass true and false literals
instead.

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/ctree.c
fs/btrfs/dev-replace.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/qgroup.c
fs/btrfs/reflink.c
fs/btrfs/send.c
fs/btrfs/transaction.c
fs/btrfs/tree-log.c