From: Matthew Wilcox (Oracle) Date: Fri, 7 Mar 2025 18:21:47 +0000 (+0000) Subject: f2fs: Remove check for ->writepage X-Git-Tag: v6.15-rc1~151^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=448a834f89add24191f73661e6133062cc580317;p=thirdparty%2Fkernel%2Flinux.git f2fs: Remove check for ->writepage We're almost able to remove a_ops->writepage. This check is unnecessary as we'll never call into __f2fs_write_data_pages() for character devices. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index bb701fa977bf3..8575358f5190f 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -3280,10 +3280,6 @@ static int __f2fs_write_data_pages(struct address_space *mapping, int ret; bool locked = false; - /* deal with chardevs and other special file */ - if (!mapping->a_ops->writepage) - return 0; - /* skip writing if there is no dirty page in this inode */ if (!get_dirty_pages(inode) && wbc->sync_mode == WB_SYNC_NONE) return 0;