]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/buffer_head.h
Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-omap-h63xx.git] / include / linux / buffer_head.h
index eadaab44015f62e4fa04ab003828945d6c6bf503..3ce64b90118c20346a704d1c727ec9450d7ccb95 100644 (file)
@@ -322,7 +322,7 @@ static inline void wait_on_buffer(struct buffer_head *bh)
 
 static inline int trylock_buffer(struct buffer_head *bh)
 {
-       return likely(!test_and_set_bit(BH_Lock, &bh->b_state));
+       return likely(!test_and_set_bit_lock(BH_Lock, &bh->b_state));
 }
 
 static inline void lock_buffer(struct buffer_head *bh)