diff options
author | Brian Foster <bfoster@redhat.com> | 2018-07-12 01:26:13 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-07-12 01:26:13 -0400 |
commit | ccd9d91148780a5e979ac00bce67c2155fb6378f (patch) | |
tree | 6a205b024861f4849d28058a849cc96b3aceeaf1 /fs/xfs/xfs_reflink.c | |
parent | 4bcfa613a0582a9992a6c2af82273bd770103d12 (diff) |
xfs: remove xfs_bunmapi() dfops param
Now that all xfs_bunmapi() callers use ->t_dfops, remove the
unnecessary parameter and access ->t_dfops directly. This patch does
not change behavior.
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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index c119cd33766e..0ac0706c98e8 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c | |||
@@ -703,7 +703,7 @@ xfs_reflink_end_cow( | |||
703 | tp->t_dfops = &dfops; | 703 | tp->t_dfops = &dfops; |
704 | rlen = del.br_blockcount; | 704 | rlen = del.br_blockcount; |
705 | error = __xfs_bunmapi(tp, ip, del.br_startoff, &rlen, 0, 1, | 705 | error = __xfs_bunmapi(tp, ip, del.br_startoff, &rlen, 0, 1, |
706 | &firstfsb, tp->t_dfops); | 706 | &firstfsb); |
707 | if (error) | 707 | if (error) |
708 | goto out_defer; | 708 | goto out_defer; |
709 | 709 | ||
@@ -1052,8 +1052,7 @@ xfs_reflink_remap_extent( | |||
1052 | while (rlen) { | 1052 | while (rlen) { |
1053 | xfs_defer_init(&dfops, &firstfsb); | 1053 | xfs_defer_init(&dfops, &firstfsb); |
1054 | tp->t_dfops = &dfops; | 1054 | tp->t_dfops = &dfops; |
1055 | error = __xfs_bunmapi(tp, ip, destoff, &rlen, 0, 1, | 1055 | error = __xfs_bunmapi(tp, ip, destoff, &rlen, 0, 1, &firstfsb); |
1056 | &firstfsb, tp->t_dfops); | ||
1057 | if (error) | 1056 | if (error) |
1058 | goto out_defer; | 1057 | goto out_defer; |
1059 | 1058 | ||