From e145a5f7cc7d6658e494762e825cb9eb6255bf40 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Wed, 11 May 2022 15:44:32 +0900 Subject: [PATCH] exfat: fs: Convert __set_page_dirty_buffers to block_dirty_folio Convert all callers; mostly this is just changing the aops to point at it, but a few implementations need a little more work. Signed-off-by: Matthew Wilcox (Oracle) Tested-by: Damien Le Moal Acked-by: Damien Le Moal Tested-by: Mike Marshall # orangefs Tested-by: David Howells # afs Signed-off-by: Namjae Jeon --- inode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inode.c b/inode.c index 3efb9a678fa8..bd04c160848f 100644 --- a/inode.c +++ b/inode.c @@ -514,7 +514,9 @@ int exfat_block_truncate_page(struct inode *inode, loff_t from) } static const struct address_space_operations exfat_aops = { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) + .dirty_folio = block_dirty_folio, +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0) .set_page_dirty = __set_page_dirty_buffers, #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)