summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap_util.c
diff options
context:
space:
mode:
authorBrian Foster2018-07-12 07:26:23 +0200
committerDarrick J. Wong2018-07-12 07:26:23 +0200
commit372837978d90d1c563315192196735c09623a5d6 (patch)
treedb6a4bd3b93e52b34752fbc7b14ec13566462a38 /fs/xfs/xfs_bmap_util.c
parentxfs: use ->t_firstblock for all xfs_bmapi_write() callers (diff)
downloadkernel-qcow2-linux-372837978d90d1c563315192196735c09623a5d6.tar.gz
kernel-qcow2-linux-372837978d90d1c563315192196735c09623a5d6.tar.xz
kernel-qcow2-linux-372837978d90d1c563315192196735c09623a5d6.zip
xfs: use ->t_firstblock for all xfs_bunmapi() callers
Convert all xfs_bunmapi() callers to ->t_firstblock. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r--fs/xfs/xfs_bmap_util.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c
index dd563f4a82e8..0b2b52854061 100644
--- a/fs/xfs/xfs_bmap_util.c
+++ b/fs/xfs/xfs_bmap_util.c
@@ -1024,7 +1024,6 @@ xfs_unmap_extent(
struct xfs_mount *mp = ip->i_mount;
struct xfs_trans *tp;
struct xfs_defer_ops dfops;
- xfs_fsblock_t firstfsb;
uint resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0);
int error;
@@ -1042,9 +1041,9 @@ xfs_unmap_extent(
xfs_trans_ijoin(tp, ip, 0);
- xfs_defer_init(tp, &dfops, &firstfsb);
- error = xfs_bunmapi(tp, ip, startoffset_fsb, len_fsb, 0, 2, &firstfsb,
- done);
+ xfs_defer_init(tp, &dfops, &tp->t_firstblock);
+ error = xfs_bunmapi(tp, ip, startoffset_fsb, len_fsb, 0, 2,
+ &tp->t_firstblock, done);
if (error)
goto out_bmap_cancel;