summaryrefslogtreecommitdiff
path: root/fs/btrfs/delayed-inode.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-05-31 15:41:41 +0100
committerDavid Sterba <dsterba@suse.com>2025-07-21 23:53:30 +0200
commit4106eb9bdae662e6ba14f1b55a33c8a2489ff86b (patch)
tree2a9af936fffc8518a050282b1a338187a8dae492 /fs/btrfs/delayed-inode.h
parentadc1ef55dc04a57cfafdc1f7477a7c98969e7600 (diff)
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>
Diffstat (limited to 'fs/btrfs/delayed-inode.h')
-rw-r--r--fs/btrfs/delayed-inode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/delayed-inode.h b/fs/btrfs/delayed-inode.h
index c4b4ba122beb..73d13fac8917 100644
--- a/fs/btrfs/delayed-inode.h
+++ b/fs/btrfs/delayed-inode.h
@@ -150,8 +150,7 @@ bool btrfs_readdir_get_delayed_items(struct btrfs_inode *inode,
void btrfs_readdir_put_delayed_items(struct btrfs_inode *inode,
struct list_head *ins_list,
struct list_head *del_list);
-int btrfs_should_delete_dir_index(const struct list_head *del_list,
- u64 index);
+bool btrfs_should_delete_dir_index(const struct list_head *del_list, u64 index);
int btrfs_readdir_delayed_dir_index(struct dir_context *ctx,
const struct list_head *ins_list);