vfs: export remap and write check helpers
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:13 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:13 +0000 (14:54 -0700)
commit5b9932f6001c70b984e8c9c2fe09e443beb4baba
treefa095c911ab89720b30300a2a592808e2fd6a199
parent15f78aa3eb07645e7bef15a53b4ae1c757907d2c
vfs: export remap and write check helpers

Export these functions so that the next patch can use them to check the
file ranges being passed to the XFS_IOC_EXCHANGE_RANGE operation.

Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/read_write.c
fs/remap_range.c
include/linux/fs.h