aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_bmap.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2018-07-11 22:26:12 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2018-07-11 22:26:12 -0700
commit6e702a5dcbe1d38cf479931dd2e2a3da884143f0 (patch)
tree069cc3a88b33e1518a643c0a56176cbd0adf1b3a /fs/xfs/libxfs/xfs_bmap.c
parentxfs: use ->t_dfops for all xfs_bmapi_write() callers (diff)
downloadlinux-dev-6e702a5dcbe1d38cf479931dd2e2a3da884143f0.tar.xz
linux-dev-6e702a5dcbe1d38cf479931dd2e2a3da884143f0.zip
xfs: remove xfs_bmapi_write() dfops param
Now that all callers use ->t_dfops, the xfs_bmapi_write() dfops parameter is no longer necessary. Remove it 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 '')
-rw-r--r--fs/xfs/libxfs/xfs_bmap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index c65aeb088552..02e72c195c4f 100644
--- a/fs/xfs/libxfs/xfs_bmap.c
+++ b/fs/xfs/libxfs/xfs_bmap.c
@@ -4245,8 +4245,7 @@ xfs_bmapi_write(
controls a.g. for allocs */
xfs_extlen_t total, /* total blocks needed */
struct xfs_bmbt_irec *mval, /* output: map values */
- int *nmap, /* i/o: mval size/count */
- struct xfs_defer_ops *dfops) /* i/o: list extents to free */
+ int *nmap) /* i/o: mval size/count */
{
struct xfs_mount *mp = ip->i_mount;
struct xfs_ifork *ifp;
@@ -4337,7 +4336,7 @@ xfs_bmapi_write(
bma.ip = ip;
bma.total = total;
bma.datatype = 0;
- bma.dfops = dfops;
+ bma.dfops = tp ? tp->t_dfops : NULL;
bma.firstblock = firstblock;
while (bno < end && n < *nmap) {
@@ -4414,8 +4413,9 @@ xfs_bmapi_write(
* the refcount btree for orphan recovery.
*/
if (whichfork == XFS_COW_FORK) {
- error = xfs_refcount_alloc_cow_extent(mp, dfops,
- bma.blkno, bma.length);
+ error = xfs_refcount_alloc_cow_extent(mp,
+ tp->t_dfops, bma.blkno,
+ bma.length);
if (error)
goto error0;
}