summaryrefslogtreecommitdiffstats
path: root/include/linux/locks.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-06-01 03:16:17 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-06-01 03:16:17 +0000
commitd8d9b8f76f22b7a16a83e261e64f89ee611f49df (patch)
tree3067bc130b80d52808e6390c9fc7fc087ec1e33c /include/linux/locks.h
parent19c9bba94152148523ba0f7ef7cffe3d45656b11 (diff)
Initial revision
Diffstat (limited to 'include/linux/locks.h')
-rw-r--r--include/linux/locks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/locks.h b/include/linux/locks.h
index 37933f63e..9e32ef883 100644
--- a/include/linux/locks.h
+++ b/include/linux/locks.h
@@ -22,7 +22,7 @@ extern inline void wait_on_buffer(struct buffer_head * bh)
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);
}