netfs: Use a folio_queue allocation and free functions
authorDavid Howells <dhowells@redhat.com>
Mon, 16 Dec 2024 20:40:53 +0000 (20:40 +0000)
committerChristian Brauner <brauner@kernel.org>
Fri, 20 Dec 2024 21:34:02 +0000 (22:34 +0100)
commiteb1181594417dafad0f75808ead71f6d5170c1ea
tree33d61af51d564764c773069d58c1e9e5a9e9c610
parent2a8a384621c35849bbc068e25e41cbe23243fa40
netfs: Use a folio_queue allocation and free functions

Provide and use folio_queue allocation and free functions to combine the
allocation, initialisation and stat (un)accounting steps that are repeated
in several places.

Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20241216204124.3752367-4-dhowells@redhat.com
cc: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/netfs/buffered_read.c
fs/netfs/misc.c
include/linux/netfs.h