| 1009 | */ |
| 1010 | |
| 1011 | static inline void wait_on_buffer(struct buffer_head *bh) |
| 1012 | { |
| 1013 | might_sleep(); |
| 1014 | if (buffer_locked(bh) || atomic_read(&bh->b_count) == 0) |
| 1015 | __wait_on_buffer(bh); |
| 1016 | } |
| 1017 | |
| 1018 | static inline void lock_buffer(struct buffer_head *bh) |
| 1019 | { |
no test coverage detected