Whamcloud - gitweb
LU-19045 build: memfs_write_end can be passed a folio 93/59393/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 23 May 2025 00:06:32 +0000 (07:06 +0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jun 2025 23:00:22 +0000 (23:00 +0000)
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 <shaun.tancheff@hpe.com>
Change-Id: I1cf87ac70c52652530e4fbc853c5160dc5822ec9
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59393
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-wbcfs/wbcfs.c

index 152c296..c874cc7 100644 (file)
@@ -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;