diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-12-06 23:51:34 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-12-06 23:51:34 +0000 |
commit | 230e5ab6a084ed50470f101934782dbf54b0d06b (patch) | |
tree | 5dd821c8d33f450470588e7a543f74bf74306e9e /include/linux/locks.h | |
parent | c9b1c8a64c6444d189856f1e26bdcb8b4cd0113a (diff) |
Merge with Linux 2.1.67.
Diffstat (limited to 'include/linux/locks.h')
-rw-r--r-- | include/linux/locks.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/locks.h b/include/linux/locks.h index 9e32ef883..2094a4d19 100644 --- a/include/linux/locks.h +++ b/include/linux/locks.h @@ -26,8 +26,11 @@ extern inline void lock_buffer(struct buffer_head * bh) __wait_on_buffer(bh); } -void unlock_buffer(struct buffer_head *); - +extern inline void unlock_buffer(struct buffer_head *bh) +{ + clear_bit(BH_Lock, &bh->b_state); + wake_up(&bh->b_wait); +} /* * super-block locking. Again, interrupts may only unlock |