From 8426a3294a750b5e26fe3f7703b0053e352950c1 Mon Sep 17 00:00:00 2001 From: Shaun Tancheff Date: Fri, 23 May 2025 07:06:32 +0700 Subject: [PATCH] LU-19045 build: memfs_write_end can be passed a folio Linux v6.11-rc1-51-ga225800f322a fs: Convert aops->write_end to take a folio Linux v6.11-rc1-52-g1da86618bdce fs: Convert aops->write_begin to take a folio Add 'struct folio' for page vs folio signature change. Fixes: 25813cf8ba ("LU-18813 osd-wbcfs: MemFS-based OSD with writeback support") Signed-off-by: Shaun Tancheff Change-Id: I1cf87ac70c52652530e4fbc853c5160dc5822ec9 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59393 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Timothy Day Reviewed-by: Jian Yu Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/osd-wbcfs/wbcfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/osd-wbcfs/wbcfs.c b/lustre/osd-wbcfs/wbcfs.c index 152c296..c874cc7 100644 --- a/lustre/osd-wbcfs/wbcfs.c +++ b/lustre/osd-wbcfs/wbcfs.c @@ -596,8 +596,9 @@ static int memfs_dcache_readdir(struct file *file, struct dir_context *ctx) */ static int memfs_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned int len, unsigned int copied, - struct page *page, void *fsdata) + struct wbe_folio *vmfolio, void *fsdata) { + struct page *page = wbe_folio_page(vmfolio); struct inode *inode = page->mapping->host; loff_t last_pos = pos + copied; -- 1.8.3.1