]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: use bool for return type of btrfs_block_can_be_shared()
authorFilipe Manana <fdmanana@suse.com>
Thu, 19 Oct 2023 12:19:29 +0000 (13:19 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 19:27:00 +0000 (20:27 +0100)
commit6e5de50fc5d71e0a5fe2357c067cea752fe375d7
tree613215016d96ee96dbcb02e7efba9640c57d4d64
parent6000d9313f20e6587a9e5506b4ea169ed61ab686
btrfs: use bool for return type of btrfs_block_can_be_shared()

Currently btrfs_block_can_be_shared() returns an int that is used as a
boolean. Since it all it needs is to return true or false, and it can't
return errors for example, change the return type from int to bool to
make it a bit more readable and obvious.

Reviewed-by: Anand Jain <anand.jain@oracle.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/ctree.c
fs/btrfs/ctree.h