xfs: use ->t_dfops for all xfs_bunmapi() callers
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:13 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:13 +0000 (22:26 -0700)
commit4bcfa613a0582a9992a6c2af82273bd770103d12
tree07b05f8a462387bc4a8935b0c64f478f9484a979
parent6e702a5dcbe1d38cf479931dd2e2a3da884143f0
xfs: use ->t_dfops for all xfs_bunmapi() callers

Use ->t_dfops for all remaining xfs_bunmapi() callers. This prepares
the latter to no longer require a dfops parameter.

Note that xfs_itruncate_extents_flags() associates a local dfops
with a transaction provided from the caller. Since there are
multiple callers, set and reset ->t_dfops before the function
returns to avoid exposure of stack memory to the caller.

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_bmap_util.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_symlink.c