patch-2.1.63 linux/include/linux/locks.h
Next file: linux/include/linux/md.h
Previous file: linux/include/linux/ipx.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sat Nov 8 11:39:13 1997
- Orig file:
v2.1.62/linux/include/linux/locks.h
- Orig date:
Mon Jul 7 16:02:11 1997
diff -u --recursive --new-file v2.1.62/linux/include/linux/locks.h linux/include/linux/locks.h
@@ -26,8 +26,11 @@
__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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov