shmem: move shmem_mapping out of line
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:10 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:50 +0000 (11:36 +0530)
commitaefacb2041f77784059b86c5fd151066859ad19a
tree2293ee9104d4613db9df9c1cebf740aa7c559831
parentb64e74e95aa6491b31477e9002aab1d8df3995bf
shmem: move shmem_mapping out of line

shmem_aops really should not be exported to the world.  Move
shmem_mapping and export it as internal for the one semi-legitimate
modular user in udmabuf.

This effectively reverts commit 30e6a51dbb05 ("mm/shmem.c: make
shmem_mapping() inline"). which added a bogus shmem_aops non-GPL export
for no reason whatsoever as there as no shmem_mapping call outside of
core MM code at that point.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
include/linux/shmem_fs.h
mm/shmem.c