aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/buffer_head.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/buffer_head.h')
-rw-r--r--include/linux/buffer_head.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h
index 89d9aa9e79bf..c67f052cc5e5 100644
--- a/include/linux/buffer_head.h
+++ b/include/linux/buffer_head.h
@@ -82,15 +82,15 @@ struct buffer_head {
82 * and buffer_foo() functions. 82 * and buffer_foo() functions.
83 */ 83 */
84#define BUFFER_FNS(bit, name) \ 84#define BUFFER_FNS(bit, name) \
85static inline void set_buffer_##name(struct buffer_head *bh) \ 85static __always_inline void set_buffer_##name(struct buffer_head *bh) \
86{ \ 86{ \
87 set_bit(BH_##bit, &(bh)->b_state); \ 87 set_bit(BH_##bit, &(bh)->b_state); \
88} \ 88} \
89static inline void clear_buffer_##name(struct buffer_head *bh) \ 89static __always_inline void clear_buffer_##name(struct buffer_head *bh) \
90{ \ 90{ \
91 clear_bit(BH_##bit, &(bh)->b_state); \ 91 clear_bit(BH_##bit, &(bh)->b_state); \
92} \ 92} \
93static inline int buffer_##name(const struct buffer_head *bh) \ 93static __always_inline int buffer_##name(const struct buffer_head *bh) \
94{ \ 94{ \
95 return test_bit(BH_##bit, &(bh)->b_state); \ 95 return test_bit(BH_##bit, &(bh)->b_state); \
96} 96}
@@ -99,11 +99,11 @@ static inline int buffer_##name(const struct buffer_head *bh) \
99 * test_set_buffer_foo() and test_clear_buffer_foo() 99 * test_set_buffer_foo() and test_clear_buffer_foo()
100 */ 100 */
101#define TAS_BUFFER_FNS(bit, name) \ 101#define TAS_BUFFER_FNS(bit, name) \
102static inline int test_set_buffer_##name(struct buffer_head *bh) \ 102static __always_inline int test_set_buffer_##name(struct buffer_head *bh) \
103{ \ 103{ \
104 return test_and_set_bit(BH_##bit, &(bh)->b_state); \ 104 return test_and_set_bit(BH_##bit, &(bh)->b_state); \
105} \ 105} \
106static inline int test_clear_buffer_##name(struct buffer_head *bh) \ 106static __always_inline int test_clear_buffer_##name(struct buffer_head *bh) \
107{ \ 107{ \
108 return test_and_clear_bit(BH_##bit, &(bh)->b_state); \ 108 return test_and_clear_bit(BH_##bit, &(bh)->b_state); \
109} \ 109} \