diff mbox series

[06/17] 9p: Enable multipage folios

Message ID 20240620173137.610345-7-dhowells@redhat.com
State New
Headers show
Series netfs, cifs: Miscellaneous fixes and read/write improvements | expand

Commit Message

David Howells June 20, 2024, 5:31 p.m. UTC
Enable support for multipage folios on the 9P filesystem.  This is all
handled through netfslib and is already enabled on AFS and CIFS also.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Eric Van Hensbergen <ericvh@kernel.org>
cc: Latchesar Ionkov <lucho@ionkov.net>
cc: Dominique Martinet <asmadeus@codewreck.org>
cc: Christian Schoenebeck <linux_oss@crudebyte.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: Matthew Wilcox <willy@infradead.org>
cc: v9fs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
---
 fs/9p/vfs_inode.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Dominique Martinet June 20, 2024, 8:34 p.m. UTC | #1
David Howells wrote on Thu, Jun 20, 2024 at 06:31:24PM +0100:
> Enable support for multipage folios on the 9P filesystem.  This is all
> handled through netfslib and is already enabled on AFS and CIFS also.

Since this is fairly unrelated to the other patches let's take this
through the 9p tree as well - I'll run some quick tests to verify writes
go from 4k to something larger and it doesn't blow up immediately and
push it out for 6.11
Dominique Martinet June 20, 2024, 8:49 p.m. UTC | #2
Dominique Martinet wrote on Fri, Jun 21, 2024 at 05:34:49AM +0900:
> David Howells wrote on Thu, Jun 20, 2024 at 06:31:24PM +0100:
> > Enable support for multipage folios on the 9P filesystem.  This is all
> > handled through netfslib and is already enabled on AFS and CIFS also.
> 
> Since this is fairly unrelated to the other patches let's take this
> through the 9p tree as well - I'll run some quick tests to verify writes
> go from 4k to something larger

(huh, my memory is rotten, we were already aggregating writes at some
point without this. Oh, well, at least it doesn't seem to blow up)

> and it doesn't blow up immediately and push it out for 6.11

Queued for -next.
diff mbox series

Patch

diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index fd72fc38c8f5..effb3aa1f3ed 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -295,6 +295,7 @@  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: