]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Enable multipage folio support
authorDavid Howells <dhowells@redhat.com>
Wed, 10 Aug 2022 17:52:47 +0000 (18:52 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 14 Aug 2022 00:20:51 +0000 (17:20 -0700)
commitbc26a88330da3d0b8d0d01334e80b298bf6d5e6d
treeb09ce0d0f6b05e0b6681f68fd17bb8532f7af00d
parent4f94e4393f690e3508d22c84a66ebbb047aaf632
afs: Enable multipage folio support

Enable multipage folio support for the afs filesystem.

Support has already been implemented in netfslib, fscache and cachefiles
and in most of afs, but I've waited for Matthew Wilcox's latest folio
changes.

Note that it does require a change to afs_write_begin() to return the
correct subpage.  This is a "temporary" change as we're working on
getting rid of the need for ->write_begin() and ->write_end()
completely, at least as far as network filesystems are concerned - but
it doesn't prevent afs from making use of the capability.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: kafs-testing@auristor.com
Cc: Marc Dionne <marc.dionne@auristor.com>
Cc: linux-afs@lists.infradead.org
Link: https://lore.kernel.org/lkml/2274528.1645833226@warthog.procyon.org.uk/
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/inode.c
fs/afs/write.c