patch-2.1.37 linux/include/linux/locks.h
Next file: linux/include/linux/lp_m68k.h
Previous file: linux/include/linux/fs.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Tue May 13 21:57:52 1997
- Orig file:
v2.1.36/linux/include/linux/locks.h
- Orig date:
Thu Feb 6 02:53:33 1997
diff -u --recursive --new-file v2.1.36/linux/include/linux/locks.h linux/include/linux/locks.h
@@ -22,7 +22,7 @@
extern inline void lock_buffer(struct buffer_head * bh)
{
- while (set_bit(BH_Lock, &bh->b_state))
+ while (test_and_set_bit(BH_Lock, &bh->b_state))
__wait_on_buffer(bh);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov