fuse: support folios in struct fuse_args_pages and fuse_copy_pages()
authorJoanne Koong <joannelkoong@gmail.com>
Thu, 24 Oct 2024 17:17:57 +0000 (10:17 -0700)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 5 Nov 2024 10:14:32 +0000 (11:14 +0100)
commita669c2df36db5fa7a2674ec5ae10548760702f99
treea2d13439fb89caa536131d606071fc7134f5df9e
parent8807f117be9d15088003e63bfaf0533355371ee8
fuse: support folios in struct fuse_args_pages and fuse_copy_pages()

This adds support in struct fuse_args_pages and fuse_copy_pages() for
using folios instead of pages for transferring data. Both folios and
pages must be supported right now in struct fuse_args_pages and
fuse_copy_pages() until all request types have been converted to use
folios. Once all have been converted, then
struct fuse_args_pages and fuse_copy_pages() will only support folios.

Right now in fuse, all folios are one page (large folios are not yet
supported). As such, copying folio->page is sufficient for copying
the entire folio in fuse_copy_pages().

No functional changes.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
fs/fuse/fuse_i.h