]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: open code insert range extent split helper
authorBrian Foster <bfoster@redhat.com>
Wed, 26 Oct 2022 06:28:18 +0000 (11:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Oct 2022 08:20:32 +0000 (10:20 +0200)
commit4c6c300a71a8815befb107eb94dec05d535c59c7
treeee601b5b0bb7d4ea56be57aa416e30b0ce5971d0
parent20eb9eb10c618680177aab7fac54fefcf57ecd03
xfs: open code insert range extent split helper

commit 8c5191ceec35a761368b430aa4e05def9c21a16e upstream.

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>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_bmap_util.c