diff options
author | Filipe Manana <fdmanana@suse.com> | 2021-03-11 15:31:08 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-04-19 17:25:16 +0200 |
commit | 406808ab2f0ba3dfb01ca591f55173af8f8d2c66 (patch) | |
tree | 49a73573201cdc6ad9957177f3dc26fc85473721 /fs/btrfs/tree-mod-log.h | |
parent | btrfs: move the tree mod log code into its own file (diff) | |
download | linux-406808ab2f0ba3dfb01ca591f55173af8f8d2c66.tar.xz 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.h | 2 |
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); |