summaryrefslogtreecommitdiffstats
path: root/fs/vboxsf/file.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-04-29 17:12:16 +0200
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-09 22:21:46 +0200
commit4b4db9b4c7269a9a78cd3b334254c89c564f0636 (patch)
tree909535447c57c31322f7e33010999c76e4f2308d /fs/vboxsf/file.c
parentudf: Convert adinicb and symlinks to read_folio (diff)
downloadlinux-4b4db9b4c7269a9a78cd3b334254c89c564f0636.tar.xz
linux-4b4db9b4c7269a9a78cd3b334254c89c564f0636.zip
vboxsf: Convert vboxsf to read_folio
This is a "weak" conversion which converts straight back to using pages. A full conversion should be performed at some point, hopefully by someone familiar with the filesystem. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'fs/vboxsf/file.c')
-rw-r--r--fs/vboxsf/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/vboxsf/file.c b/fs/vboxsf/file.c
index d74e0d336995..572aa1c43b37 100644
--- a/fs/vboxsf/file.c
+++ b/fs/vboxsf/file.c
@@ -225,8 +225,9 @@ const struct inode_operations vboxsf_reg_iops = {
.setattr = vboxsf_setattr
};
-static int vboxsf_readpage(struct file *file, struct page *page)
+static int vboxsf_read_folio(struct file *file, struct folio *folio)
{
+ struct page *page = &folio->page;
struct vboxsf_handle *sf_handle = file->private_data;
loff_t off = page_offset(page);
u32 nread = PAGE_SIZE;
@@ -352,7 +353,7 @@ out:
* page and it does not call SetPageUptodate for partial writes.
*/
const struct address_space_operations vboxsf_reg_aops = {
- .readpage = vboxsf_readpage,
+ .read_folio = vboxsf_read_folio,
.writepage = vboxsf_writepage,
.dirty_folio = filemap_dirty_folio,
.write_begin = simple_write_begin,