]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: inline xfs_shift_file_space into callers
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 18:07:10 +0000 (11:07 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:27 +0000 (15:38 -0700)
commitf072eed7bcf52efe2503d42f658745a33a472d81
treee0ab7786b805455c45e90c07325556e420778f31
parent7df8eaa157dd947d72ed01416a1fcf9fe21f8f51
xfs: inline xfs_shift_file_space into callers

The code is sufficiently different for the insert vs collapse cases both
in xfs_shift_file_space itself and the callers that untangling them will
make life a lot easier down the road.

We still keep a common helper for flushing all data and COW state to get
the inode into the right shape for shifting the extents around.

Signed-off-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