fs: Add FOP_HUGE_PAGES
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 9 Apr 2024 08:41:33 +0000 (10:41 +0200)
committerChristian Brauner <brauner@kernel.org>
Tue, 9 Apr 2024 08:53:44 +0000 (10:53 +0200)
commit886b94d25a8eba4c42634dddc3cbfd6391a24d25
treea40576d9af9ec4675b25920683f2cb2f80c521ac
parent629171657a2864d819a3bbecabe0a5e001d05c7a
fs: Add FOP_HUGE_PAGES

Instead of checking for specific file_operations, add a bit to
file_operations which denotes a file that only contain hugetlb pages.
This lets us make hugetlbfs_file_operations static, and removes
is_file_shm_hugepages() completely.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20240407201122.3783877-1-willy@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/hugetlbfs/inode.c
include/linux/fs.h
include/linux/hugetlb.h
include/linux/shm.h
ipc/shm.c