shmem: export shmem_kernel_file_setup
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:14 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:51 +0000 (11:36 +0530)
commitbe9d93661d548a41bb8f135b9953191f0fb2e44b
treedf9ac6629ea100475b53956cff59e45a22c6e38d
parentd7468609ee0f90ceb24143a32edc47d433d1dbba
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>
mm/shmem.c