diff options
author | Christoph Hellwig <hch@lst.de> | 2011-07-13 07:43:49 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2011-07-13 07:43:49 -0400 |
commit | adadbeefb34f755a3477da51035eeeec2c1fde38 (patch) | |
tree | bb5e9b79572004667ff6cdcbff0acd5d426ee774 /fs/xfs/xfs_log.c | |
parent | bf9d9013a2a559858efb590bf922377be9d6d969 (diff) |
xfs: remove wrappers around b_fspriv
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r-- | fs/xfs/xfs_log.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 82c797dd6520..a8718ed9776d 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -871,13 +871,9 @@ xlog_space_left( | |||
871 | void | 871 | void |
872 | xlog_iodone(xfs_buf_t *bp) | 872 | xlog_iodone(xfs_buf_t *bp) |
873 | { | 873 | { |
874 | xlog_in_core_t *iclog; | 874 | xlog_in_core_t *iclog = bp->b_fspriv; |
875 | xlog_t *l; | 875 | xlog_t *l = iclog->ic_log; |
876 | int aborted; | 876 | int aborted = 0; |
877 | |||
878 | iclog = XFS_BUF_FSPRIVATE(bp, xlog_in_core_t *); | ||
879 | aborted = 0; | ||
880 | l = iclog->ic_log; | ||
881 | 877 | ||
882 | /* | 878 | /* |
883 | * Race to shutdown the filesystem if we see an error. | 879 | * Race to shutdown the filesystem if we see an error. |
@@ -1249,9 +1245,8 @@ STATIC int | |||
1249 | xlog_bdstrat( | 1245 | xlog_bdstrat( |
1250 | struct xfs_buf *bp) | 1246 | struct xfs_buf *bp) |
1251 | { | 1247 | { |
1252 | struct xlog_in_core *iclog; | 1248 | struct xlog_in_core *iclog = bp->b_fspriv; |
1253 | 1249 | ||
1254 | iclog = XFS_BUF_FSPRIVATE(bp, xlog_in_core_t *); | ||
1255 | if (iclog->ic_state & XLOG_STATE_IOERROR) { | 1250 | if (iclog->ic_state & XLOG_STATE_IOERROR) { |
1256 | XFS_BUF_ERROR(bp, EIO); | 1251 | XFS_BUF_ERROR(bp, EIO); |
1257 | XFS_BUF_STALE(bp); | 1252 | XFS_BUF_STALE(bp); |
@@ -1358,7 +1353,7 @@ xlog_sync(xlog_t *log, | |||
1358 | iclog->ic_bwritecnt = 1; | 1353 | iclog->ic_bwritecnt = 1; |
1359 | } | 1354 | } |
1360 | XFS_BUF_SET_COUNT(bp, count); | 1355 | XFS_BUF_SET_COUNT(bp, count); |
1361 | XFS_BUF_SET_FSPRIVATE(bp, iclog); /* save for later */ | 1356 | bp->b_fspriv = iclog; |
1362 | XFS_BUF_ZEROFLAGS(bp); | 1357 | XFS_BUF_ZEROFLAGS(bp); |
1363 | XFS_BUF_BUSY(bp); | 1358 | XFS_BUF_BUSY(bp); |
1364 | XFS_BUF_ASYNC(bp); | 1359 | XFS_BUF_ASYNC(bp); |
@@ -1405,7 +1400,7 @@ xlog_sync(xlog_t *log, | |||
1405 | XFS_BUF_SET_ADDR(bp, 0); /* logical 0 */ | 1400 | XFS_BUF_SET_ADDR(bp, 0); /* logical 0 */ |
1406 | XFS_BUF_SET_PTR(bp, (xfs_caddr_t)((__psint_t)&(iclog->ic_header)+ | 1401 | XFS_BUF_SET_PTR(bp, (xfs_caddr_t)((__psint_t)&(iclog->ic_header)+ |
1407 | (__psint_t)count), split); | 1402 | (__psint_t)count), split); |
1408 | XFS_BUF_SET_FSPRIVATE(bp, iclog); | 1403 | bp->b_fspriv = iclog; |
1409 | XFS_BUF_ZEROFLAGS(bp); | 1404 | XFS_BUF_ZEROFLAGS(bp); |
1410 | XFS_BUF_BUSY(bp); | 1405 | XFS_BUF_BUSY(bp); |
1411 | XFS_BUF_ASYNC(bp); | 1406 | XFS_BUF_ASYNC(bp); |