xfs: use ->t_firstblock in inode inactivate
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:32 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:32 +0000 (22:26 -0700)
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>
fs/xfs/xfs_inode.c

index 5e1eaa2..48d2213 100644 (file)
@@ -1772,7 +1772,6 @@ xfs_inactive_ifree(
        struct xfs_inode *ip)
 {
        struct xfs_defer_ops    dfops;
-       xfs_fsblock_t           first_block;
        struct xfs_mount        *mp = ip->i_mount;
        struct xfs_trans        *tp;
        int                     error;
@@ -1809,7 +1808,7 @@ xfs_inactive_ifree(
        xfs_ilock(ip, XFS_ILOCK_EXCL);
        xfs_trans_ijoin(tp, ip, 0);
 
-       xfs_defer_init(tp, &dfops, &first_block);
+       xfs_defer_init(tp, &dfops, &tp->t_firstblock);
        error = xfs_ifree(tp, ip);
        if (error) {
                /*