netfs: Allocate multipage folios in the writepath
authorDavid Howells <dhowells@redhat.com>
Fri, 29 Sep 2023 19:11:31 +0000 (20:11 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Dec 2023 09:45:23 +0000 (09:45 +0000)
commite2e2e83924b1fe4c28bf5617db90e893755e9cbd
tree4442e8fbe8ebdb7d8949d10cad9cac910124acaf
parent7f84a7b9892d1c9429a6f5d6f67916c61b3fc183
netfs: Allocate multipage folios in the writepath

Allocate a multipage folio when copying data into the pagecache if possible
if there's sufficient data to warrant it.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
fs/netfs/buffered_write.c