summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-mod-log.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2021-03-11 14:31:08 +0000
committerDavid Sterba <dsterba@suse.com>2021-04-19 17:25:16 +0200
commit406808ab2f0ba3dfb01ca591f55173af8f8d2c66 (patch)
tree49a73573201cdc6ad9957177f3dc26fc85473721 /fs/btrfs/tree-mod-log.h
parentf3a84ccd28d0b04da0358cf1289706f3469ff9ad (diff)
downloadlinux-406808ab2f0ba3dfb01ca591f55173af8f8d2c66.tar.gz
linux-406808ab2f0ba3dfb01ca591f55173af8f8d2c66.tar.bz2
linux-406808ab2f0ba3dfb01ca591f55173af8f8d2c66.zip
btrfs: use booleans where appropriate for the tree mod log functions
Several functions of the tree modification log use integers as booleans, so change them to use booleans instead, making their use more clear. 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>
Diffstat (limited to 'fs/btrfs/tree-mod-log.h')
-rw-r--r--fs/btrfs/tree-mod-log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-mod-log.h b/fs/btrfs/tree-mod-log.h
index 071e873d465e..e74eab720a28 100644
--- a/fs/btrfs/tree-mod-log.h
+++ b/fs/btrfs/tree-mod-log.h
@@ -30,7 +30,7 @@ void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info,
struct btrfs_seq_list *elem);
int btrfs_tree_mod_log_insert_root(struct extent_buffer *old_root,
struct extent_buffer *new_root,
- int log_removal);
+ bool log_removal);
int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot,
enum btrfs_mod_log_op op, gfp_t flags);
int btrfs_tree_mod_log_free_eb(struct extent_buffer *eb);