[RFC PATCH 1/3] 9p: Enable large folio support

From: David Howells
Date: Mon Jan 29 2024 - 06:55:47 EST


From: Dominique Martinet <asmadeus@xxxxxxxxxxxxx>

Enable large folio support in 9P now that the VM/VFS data I/O interface is
handled through netfslib.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
cc: Eric Van Hensbergen <ericvh@xxxxxxxxxx>
cc: Latchesar Ionkov <lucho@xxxxxxxxxx>
cc: Dominique Martinet <asmadeus@xxxxxxxxxxxxx>
cc: Christian Schoenebeck <linux_oss@xxxxxxxxxxxxx>
cc: Matthew Wilcox <willy@xxxxxxxxxxxxx>
cc: v9fs@xxxxxxxxxxxxxxx
cc: netfs@xxxxxxxxxxxxxxx
---
fs/9p/vfs_inode.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 32572982f72e..ca9f504b9daf 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -262,6 +262,7 @@ int v9fs_init_inode(struct v9fs_session_info *v9ses,
inode->i_rdev = rdev;
simple_inode_init_ts(inode);
inode->i_mapping->a_ops = &v9fs_addr_operations;
+ mapping_set_large_folios(inode->i_mapping);
inode->i_private = NULL;

switch (mode & S_IFMT) {