path: root/ctree.h
diff options
authorNikolay Borisov <>2018-03-27 10:19:32 +0300
committerDavid Sterba <>2018-06-07 16:37:34 +0200
commit803f6c47146f9d2083ac15a88bd627cde08d78e7 (patch)
treecf4add4f489c0842b1366616403370374008aa51 /ctree.h
parent5a621e039e549f33e7b112e5a8ef1a143381fe47 (diff)
btrfs-progs: Make __btrfs_fs_incompat return bool
First this function does the '!!' trick to turn its value into a bool, yet the return type is int. Second, the kernel counterpart also returns bool. Signed-off-by: Nikolay Borisov <> Reviewed-by: Su Yue <> Signed-off-by: David Sterba <>
Diffstat (limited to 'ctree.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/ctree.h b/ctree.h
index 1fef37c9..1a511deb 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2462,7 +2462,7 @@ static inline u32 btrfs_file_extent_inline_len(struct extent_buffer *eb,
#define btrfs_fs_incompat(fs_info, opt) \
__btrfs_fs_incompat((fs_info), BTRFS_FEATURE_INCOMPAT_##opt)
-static inline int __btrfs_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag)
+static inline bool __btrfs_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag)
struct btrfs_super_block *disk_super;
disk_super = fs_info->super_copy;