]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit185197e0cab3fec7e6e8f34d0e6afeb5231d1ec8
tree84dd1a1d9e6f3765234f0c8c1f2d58b2f13d9700
parentf016cea83fc3733a0c81e73ce68161ad9ca0ce84
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