From ff027ab15c2615ff13876527e35fd08d562f0891 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Thu, 21 Jul 2022 11:43:06 +0900 Subject: [PATCH] fs: Remove aop flags parameter from cont_write_begin() There are no more aop flags left, so remove the parameter. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig Signed-off-by: Namjae Jeon --- inode.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inode.c b/inode.c index 0a1bd5f0baf6..2a50a43e97b7 100644 --- a/inode.c +++ b/inode.c @@ -388,10 +388,15 @@ static int exfat_write_begin(struct file *file, struct address_space *mapping, int ret; *pagep = NULL; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0) + ret = cont_write_begin(file, mapping, pos, len, pagep, fsdata, + exfat_get_block, + &EXFAT_I(mapping->host)->i_size_ondisk); +#else ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, exfat_get_block, &EXFAT_I(mapping->host)->i_size_ondisk); - +#endif if (ret < 0) exfat_write_failed(mapping, pos+len);