]> git.hungrycats.org Git - linux/commitdiff
btrfs: switch __btrfs_fs_incompat return type from int to bool
authorAlexandru Moise <00moses.alexander00@gmail.com>
Sun, 18 Oct 2015 21:35:41 +0000 (21:35 +0000)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 16 Jan 2016 03:29:49 +0000 (22:29 -0500)
Conform to __btrfs_fs_incompat() cast-to-bool (!!) by explicitly
returning boolean not int.

Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
(cherry picked from commit 9780c4976f5518f805b32fc00ed045b636fe8fa8)

fs/btrfs/ctree.h

index 1bd714b46d2b64a98b41929c9f8ecf638ab91471..ad97db672e2729d48fa42f2c927ff0571087890c 100644 (file)
@@ -4157,7 +4157,7 @@ static inline void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info,
 #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;