View | Details | Raw Unified | Return to bug 145204
Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +8 lines)
Line  Link Here
0
-- a/fs/xfs/linux-2.6/xfs_buf.c
0
++ b/fs/xfs/linux-2.6/xfs_buf.c
Lines 827-832 xfs_buf_rele( Link Here
827
827
828
	XB_TRACE(bp, "rele", bp->b_relse);
828
	XB_TRACE(bp, "rele", bp->b_relse);
829
829
830
	if (unlikely(!hash)) {
831
		ASSERT(!bp->b_relse);
832
		if (atomic_dec_and_test(&bp->b_hold))
833
			xfs_buf_free(bp);
834
		return;
835
	}
836
830
	if (atomic_dec_and_lock(&bp->b_hold, &hash->bh_lock)) {
837
	if (atomic_dec_and_lock(&bp->b_hold, &hash->bh_lock)) {
831
		if (bp->b_relse) {
838
		if (bp->b_relse) {
832
			atomic_inc(&bp->b_hold);
839
			atomic_inc(&bp->b_hold);

Return to bug 145204