Revert "9p: Enable multipage folios"
authorDominique Martinet <asmadeus@codewreck.org>
Wed, 23 Oct 2024 23:29:19 +0000 (08:29 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Oct 2024 18:24:05 +0000 (11:24 -0700)
This reverts commit 1325e4a91a405f88f1b18626904d37860a4f9069.

using multipage folios apparently break some madvise operations like
MADV_PAGEOUT which do not reliably unload the specified page anymore,

Revert the patch until that is figured out.

Reported-by: Andrii Nakryiko <andrii@kernel.org>
Fixes: 1325e4a91a40 ("9p: Enable multipage folios")
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/9p/vfs_inode.c

index effb3aa..fd72fc3 100644 (file)
@@ -295,7 +295,6 @@ int v9fs_init_inode(struct v9fs_session_info *v9ses,
                        inode->i_op = &v9fs_file_inode_operations;
                        inode->i_fop = &v9fs_file_operations;
                }
-               mapping_set_large_folios(inode->i_mapping);
 
                break;
        case S_IFLNK: