aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_reflink.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2018-07-12 01:26:31 -0400
committerDarrick J. Wong <darrick.wong@oracle.com>2018-07-12 01:26:31 -0400
commit381d592848721cb1b82b4ea9f57b46cf4a4a6973 (patch)
tree3002d621d5abaf455fb1cce4935bd335bf70f158 /fs/xfs/xfs_reflink.c
parentfb91f4b5d6187996796f4a9989decdf6ead12851 (diff)
xfs: use ->t_firstblock in reflink cow block cancel
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_reflink.c')
-rw-r--r--fs/xfs/xfs_reflink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c
index 2972efeee5cc..891214242118 100644
--- a/fs/xfs/xfs_reflink.c
+++ b/fs/xfs/xfs_reflink.c
@@ -483,7 +483,6 @@ xfs_reflink_cancel_cow_blocks(
483 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK); 483 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK);
484 struct xfs_bmbt_irec got, del; 484 struct xfs_bmbt_irec got, del;
485 struct xfs_iext_cursor icur; 485 struct xfs_iext_cursor icur;
486 xfs_fsblock_t firstfsb;
487 struct xfs_defer_ops dfops; 486 struct xfs_defer_ops dfops;
488 struct xfs_defer_ops *odfops = (*tpp)->t_dfops; 487 struct xfs_defer_ops *odfops = (*tpp)->t_dfops;
489 int error = 0; 488 int error = 0;
@@ -512,7 +511,7 @@ xfs_reflink_cancel_cow_blocks(
512 if (error) 511 if (error)
513 break; 512 break;
514 } else if (del.br_state == XFS_EXT_UNWRITTEN || cancel_real) { 513 } else if (del.br_state == XFS_EXT_UNWRITTEN || cancel_real) {
515 xfs_defer_init(*tpp, &dfops, &firstfsb); 514 xfs_defer_init(*tpp, &dfops, &(*tpp)->t_firstblock);
516 515
517 /* Free the CoW orphan record. */ 516 /* Free the CoW orphan record. */
518 error = xfs_refcount_free_cow_extent(ip->i_mount, 517 error = xfs_refcount_free_cow_extent(ip->i_mount,