From 7bcf79cf5a71426ac950df80ab39162d78c44c22 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Thu, 21 Jul 2022 11:44:50 +0900 Subject: [PATCH] fs: Remove flags parameter from aops->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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inode.c b/inode.c index 2a50a43e97b7..4acf0aa0c690 100644 --- a/inode.c +++ b/inode.c @@ -381,9 +381,15 @@ static void exfat_write_failed(struct address_space *mapping, loff_t to) } } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0) +static int exfat_write_begin(struct file *file, struct address_space *mapping, + loff_t pos, unsigned int len, + struct page **pagep, void **fsdata) +#else static int exfat_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned int len, unsigned int flags, struct page **pagep, void **fsdata) +#endif { int ret;