Commit e570280521290c27621d60cffea2400bdf1f2c88

Authored by Chandra Seetharaman
Committed by Alex Elder
1 parent ac4d6888b2

xfs: replace xfs_buf_geterror() with bp->b_error

Since we just checked bp for NULL, it is ok to replace
xfs_buf_geterror() with bp->b_error in these places.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Alex Elder <aelder@sgi.com>

Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff

fs/xfs/xfs_log_recover.c
... ... @@ -2133,7 +2133,7 @@
2133 2133 buf_flags);
2134 2134 if (!bp)
2135 2135 return XFS_ERROR(ENOMEM);
2136   - error = xfs_buf_geterror(bp);
  2136 + error = bp->b_error;
2137 2137 if (error) {
2138 2138 xfs_ioerror_alert("xlog_recover_do..(read#1)", mp,
2139 2139 bp, buf_f->blf_blkno);
... ... @@ -2228,7 +2228,7 @@
2228 2228 error = ENOMEM;
2229 2229 goto error;
2230 2230 }
2231   - error = xfs_buf_geterror(bp);
  2231 + error = bp->b_error;
2232 2232 if (error) {
2233 2233 xfs_ioerror_alert("xlog_recover_do..(read#2)", mp,
2234 2234 bp, in_f->ilf_blkno);
fs/xfs/xfs_vnodeops.c
... ... @@ -85,7 +85,7 @@
85 85 XBF_LOCK | XBF_MAPPED | XBF_DONT_BLOCK);
86 86 if (!bp)
87 87 return XFS_ERROR(ENOMEM);
88   - error = xfs_buf_geterror(bp);
  88 + error = bp->b_error;
89 89 if (error) {
90 90 xfs_ioerror_alert("xfs_readlink",
91 91 ip->i_mount, bp, XFS_BUF_ADDR(bp));