]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: open code insert range extent split helper
authorBrian Foster <bfoster@redhat.com>
Wed, 26 Feb 2020 17:43:15 +0000 (09:43 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:51 +0000 (20:55 -0800)
commit8c5191ceec35a761368b430aa4e05def9c21a16e
treecb587680a6e66a4da22941613a0c2a5ed11cac77
parent29cddbe6135eee7c7fa231fca5c481d3155417e3
xfs: open code insert range extent split helper

The insert range operation currently splits the extent at the target
offset in a separate transaction and lock cycle from the one that
shifts extents. In preparation for reworking insert range into an
atomic operation, lift the code into the caller so it can be easily
condensed to a single rolling transaction and lock cycle and
eliminate the helper. No functional changes.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.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/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_bmap_util.c