btrfs: make btrfs_should_delete_dir_index() return a bool instead
authorFilipe Manana <fdmanana@suse.com>
Sat, 31 May 2025 14:41:41 +0000 (15:41 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:30 +0000 (23:53 +0200)
commit4106eb9bdae662e6ba14f1b55a33c8a2489ff86b
tree2a9af936fffc8518a050282b1a338187a8dae492
parentadc1ef55dc04a57cfafdc1f7477a7c98969e7600
btrfs: make btrfs_should_delete_dir_index() return a bool instead

There's no need to return errors and we currently return 1 in case the
index should be deleted and 0 otherwise, so change the return type from
int to bool as this is a boolean function and it's more clear this way.

Reviewed-by: Boris Burkov <boris@bur.io>
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/delayed-inode.c
fs/btrfs/delayed-inode.h