Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19282
b: refs/heads/master
c: fad3aa1
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Scott committed Feb 1, 2006
1 parent 7af5fa9 commit c7b42a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a69c7dc6f3d58aeb9ce5051fc7060d55e05c003
refs/heads/master: fad3aa1e8e2e4123a19b926fefd91ec63dd56497
7 changes: 7 additions & 0 deletions trunk/fs/xfs/linux-2.6/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,13 @@ xfs_buf_rele(

XB_TRACE(bp, "rele", bp->b_relse);

if (unlikely(!hash)) {
ASSERT(!bp->b_relse);
if (atomic_dec_and_test(&bp->b_hold))
xfs_buf_free(bp);
return;
}

if (atomic_dec_and_lock(&bp->b_hold, &hash->bh_lock)) {
if (bp->b_relse) {
atomic_inc(&bp->b_hold);
Expand Down

0 comments on commit c7b42a3

Please sign in to comment.