xfs: use ->t_firstblock in dir ops
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:20 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:20 +0000 (22:26 -0700)
commitf16dea54b789aad464ae4f34caea9f8d81052729
tree84dd1a1d9e6f3765234f0c8c1f2d58b2f13d9700
parentbba59c5e4b38e160c6be25b2f4fe36ebc84f53df
xfs: use ->t_firstblock in dir ops

Callers of the xfs_dir_*() functions currently pass an on-stack
firstblock variable. While the dirops infrastructure carries a
pointer to this variable, it never rolls the transaction and so it
is safe to use ->t_firstblock instead.

Fix up the various xfs_dir_*() callers to use ->t_firstblock. Also
remove the unnecessary parameter for xfs_cross_rename().

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