Commit 494e6add authored by Werner Almesberger's avatar Werner Almesberger Committed by Linus Torvalds

[PATCH] make buffer head argument of buffer_##name "const"

Allow the buffer_foo() predicates to take a (const struct buffer_head *).

I've checked that the argument of test_bit is indeed "const" on all
architectures.
Signed-off-by: default avatarWerner Almesberger <werner@almesberger.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6630c357
......@@ -76,7 +76,7 @@ static inline void clear_buffer_##name(struct buffer_head *bh) \
{ \
clear_bit(BH_##bit, &(bh)->b_state); \
} \
static inline int buffer_##name(struct buffer_head *bh) \
static inline int buffer_##name(const struct buffer_head *bh) \
{ \
return test_bit(BH_##bit, &(bh)->b_state); \
}
......
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