7 #ifndef _LINUX_PAGEMAP_H
8 #include <linux/pagemap.h>
12 * Buffer cache locking - note that interrupts may only unlock, not
15 extern void __wait_on_buffer(struct buffer_head
*);
17 extern inline void wait_on_buffer(struct buffer_head
* bh
)
19 if (test_bit(BH_Lock
, &bh
->b_state
))
23 extern inline void lock_buffer(struct buffer_head
* bh
)
25 while (test_and_set_bit(BH_Lock
, &bh
->b_state
))
29 extern inline void unlock_buffer(struct buffer_head
*bh
)
31 clear_bit(BH_Lock
, &bh
->b_state
);
36 * super-block locking. Again, interrupts may only unlock
37 * a super-block (although even this isn't done right now.
40 extern void __wait_on_super(struct super_block
*);
42 extern inline void wait_on_super(struct super_block
* sb
)
48 extern inline void lock_super(struct super_block
* sb
)
55 extern inline void unlock_super(struct super_block
* sb
)
61 #endif /* _LINUX_LOCKS_H */