diff mbox series

[2/3] fuse: Use a folio instead of a page

Message ID 20240809162221.2582364-2-willy@infradead.org (mailing list archive)
State New
Headers show
Series [1/3] fuse: remove call to SetPageError | expand

Commit Message

Matthew Wilcox Aug. 9, 2024, 4:22 p.m. UTC
part two

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 fs/fuse/file.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 4bf452d5ba9d..2b5533e41a62 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -935,12 +935,12 @@  static void fuse_readpages_end(struct fuse_mount *fm, struct fuse_args *args,
 	}
 
 	for (i = 0; i < ap->num_pages; i++) {
-		struct page *page = ap->pages[i];
+		struct folio *folio = page_folio(ap->pages[i]);
 
 		if (!err)
-			SetPageUptodate(page);
-		unlock_page(page);
-		put_page(page);
+			folio_mark_uptodate(folio);
+		folio_unlock(folio);
+		folio_put(folio);
 	}
 	if (ia->ff)
 		fuse_file_put(ia->ff, false);