Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108298
b: refs/heads/master
c: 3790689
h: refs/heads/master
v: v3
  • Loading branch information
Lachlan McIlroy authored and Lachlan McIlroy committed Aug 13, 2008
1 parent 47dce1d commit cd3a01f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 79071eb0b2f142b9cc6531d04fa2915943938b5e
refs/heads/master: 3790689fa3c771bba6bafb7dee3e8389dd0b55bc
6 changes: 1 addition & 5 deletions trunk/fs/xfs/linux-2.6/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ xfs_buf_rele(
return;
}

ASSERT(atomic_read(&bp->b_hold) > 0);
if (atomic_dec_and_lock(&bp->b_hold, &hash->bh_lock)) {
if (bp->b_relse) {
atomic_inc(&bp->b_hold);
Expand All @@ -851,11 +852,6 @@ xfs_buf_rele(
spin_unlock(&hash->bh_lock);
xfs_buf_free(bp);
}
} else {
/*
* Catch reference count leaks
*/
ASSERT(atomic_read(&bp->b_hold) >= 0);
}
}

Expand Down

0 comments on commit cd3a01f

Please sign in to comment.