Commit 80fbc341 authored by Qu Wenruo's avatar Qu Wenruo Committed by David Sterba

btrfs: Make btrfs_(set|clear)_header_flag return void

From the introduction of btrfs_(set|clear)_header_flag, there is no
usage of its return value.  So just make it return void.
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 10995c04
...@@ -2163,18 +2163,16 @@ static inline int btrfs_header_flag(const struct extent_buffer *eb, u64 flag) ...@@ -2163,18 +2163,16 @@ static inline int btrfs_header_flag(const struct extent_buffer *eb, u64 flag)
return (btrfs_header_flags(eb) & flag) == flag; return (btrfs_header_flags(eb) & flag) == flag;
} }
static inline int btrfs_set_header_flag(struct extent_buffer *eb, u64 flag) static inline void btrfs_set_header_flag(struct extent_buffer *eb, u64 flag)
{ {
u64 flags = btrfs_header_flags(eb); u64 flags = btrfs_header_flags(eb);
btrfs_set_header_flags(eb, flags | flag); btrfs_set_header_flags(eb, flags | flag);
return (flags & flag) == flag;
} }
static inline int btrfs_clear_header_flag(struct extent_buffer *eb, u64 flag) static inline void btrfs_clear_header_flag(struct extent_buffer *eb, u64 flag)
{ {
u64 flags = btrfs_header_flags(eb); u64 flags = btrfs_header_flags(eb);
btrfs_set_header_flags(eb, flags & ~flag); btrfs_set_header_flags(eb, flags & ~flag);
return (flags & flag) == flag;
} }
static inline int btrfs_header_backref_rev(const struct extent_buffer *eb) static inline int btrfs_header_backref_rev(const struct extent_buffer *eb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment