diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:54:13 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:54:13 -0700 |
commit | 5b9932f6001c70b984e8c9c2fe09e443beb4baba (patch) | |
tree | fa095c911ab89720b30300a2a592808e2fd6a199 /fs/read_write.c | |
parent | 15f78aa3eb07645e7bef15a53b4ae1c757907d2c (diff) | |
download | lwn-5b9932f6001c70b984e8c9c2fe09e443beb4baba.tar.gz lwn-5b9932f6001c70b984e8c9c2fe09e443beb4baba.zip |
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>
Diffstat (limited to 'fs/read_write.c')
-rw-r--r-- | fs/read_write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index d4c036e82b6c..85c096f2c0d0 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -1667,6 +1667,7 @@ int generic_write_check_limits(struct file *file, loff_t pos, loff_t *count) return 0; } +EXPORT_SYMBOL_GPL(generic_write_check_limits); /* Like generic_write_checks(), but takes size of write instead of iter. */ int generic_write_checks_count(struct kiocb *iocb, loff_t *count) |