diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-19 09:27:14 +0300 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2024-02-21 09:06:51 +0300 |
commit | be9d93661d548a41bb8f135b9953191f0fb2e44b (patch) | |
tree | df9ac6629ea100475b53956cff59e45a22c6e38d /mm/shmem.c | |
parent | d7468609ee0f90ceb24143a32edc47d433d1dbba (diff) | |
download | linux-be9d93661d548a41bb8f135b9953191f0fb2e44b.tar.xz |
shmem: export shmem_kernel_file_setup
XFS wants to use this for it's internal in-memory data structures and
currently duplicates the functionality. Export shmem_kernel_file_setup
to allow XFS to switch over to using the proper kernel API.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index aeb1fd19ea3f..95e70e9ea060 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -4861,6 +4861,7 @@ struct file *shmem_kernel_file_setup(const char *name, loff_t size, unsigned lon { return __shmem_file_setup(shm_mnt, name, size, flags, S_PRIVATE); } +EXPORT_SYMBOL_GPL(shmem_kernel_file_setup); /** * shmem_file_setup - get an unlinked file living in tmpfs |