mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
fuse: support large folios for folio reads
Add support for folios larger than one page size for folio reads into the page cache. Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Bernd Schubert <bschubert@ddn.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
d60a6015e1
commit
351a24eb48
|
|
@ -793,7 +793,7 @@ static int fuse_do_readfolio(struct file *file, struct folio *folio)
|
|||
struct inode *inode = folio->mapping->host;
|
||||
struct fuse_mount *fm = get_fuse_mount(inode);
|
||||
loff_t pos = folio_pos(folio);
|
||||
struct fuse_folio_desc desc = { .length = PAGE_SIZE };
|
||||
struct fuse_folio_desc desc = { .length = folio_size(folio) };
|
||||
struct fuse_io_args ia = {
|
||||
.ap.args.page_zeroing = true,
|
||||
.ap.args.out_pages = true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user