Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115865
b: refs/heads/master
c: 51b07fc
h: refs/heads/master
i:
  115863: 54c5a8d
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Oct 20, 2008
1 parent 1d89ad2 commit 5c642f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8413ac9d8c9a1366a4f57880723126cd24e5a5c3
refs/heads/master: 51b07fc3c5c830bb49c80fc5eac041e1f66a72e7
3 changes: 1 addition & 2 deletions trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ EXPORT_SYMBOL(__lock_buffer);

void unlock_buffer(struct buffer_head *bh)
{
smp_mb__before_clear_bit();
clear_buffer_locked(bh);
clear_bit_unlock(BH_Lock, &bh->b_state);
smp_mb__after_clear_bit();
wake_up_bit(&bh->b_state, BH_Lock);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/buffer_head.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c642f6

Please sign in to comment.