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)
commit8549a26308f945bddb39391643eb102da026f0ef
treeb09ce0d0f6b05e0b6681f68fd17bb8532f7af00d
parentf6eb0fed6a3957c0b93e3a00c1ffaad84d4ffc31
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