diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2011-08-03 02:18:34 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-08-12 13:39:40 -0500 |
commit | e570280521290c27621d60cffea2400bdf1f2c88 (patch) | |
tree | 4cf24cfa20ecef67b2aafa2309d04a137ecfbe4a /fs/xfs/xfs_log_recover.c | |
parent | ac4d6888b21a8be373f3e06f1d4011fbe2bbbeac (diff) | |
download | linux-stable-e570280521290c27621d60cffea2400bdf1f2c88.tar.gz linux-stable-e570280521290c27621d60cffea2400bdf1f2c88.tar.bz2 linux-stable-e570280521290c27621d60cffea2400bdf1f2c88.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index b9afff8a1be2..a199dbcee7d8 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -2133,7 +2133,7 @@ xlog_recover_buffer_pass2( buf_flags); if (!bp) return XFS_ERROR(ENOMEM); - error = xfs_buf_geterror(bp); + error = bp->b_error; if (error) { xfs_ioerror_alert("xlog_recover_do..(read#1)", mp, bp, buf_f->blf_blkno); @@ -2228,7 +2228,7 @@ xlog_recover_inode_pass2( error = ENOMEM; goto error; } - error = xfs_buf_geterror(bp); + error = bp->b_error; if (error) { xfs_ioerror_alert("xlog_recover_do..(read#2)", mp, bp, in_f->ilf_blkno); |