xfs: only trace buffer items if they exist
[deliverable/linux.git] / fs / xfs / xfs_trans_buf.c
index 0a4d4ab6d9a9f61af49f133a15b0b97dbe41cd46..75798412859a7ba2f47b01945c54b7ee82ff4e7e 100644 (file)
@@ -327,9 +327,10 @@ xfs_trans_read_buf_map(
                return -EIO;
        }
 
-       if (tp)
+       if (tp) {
                _xfs_trans_bjoin(tp, bp, 1);
-       trace_xfs_trans_read_buf(bp->b_fspriv);
+               trace_xfs_trans_read_buf(bp->b_fspriv);
+       }
        *bpp = bp;
        return 0;
 
This page took 0.023995 seconds and 5 git commands to generate.