diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-03-07 18:21:47 +0000 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-03-11 19:37:41 +0000 |
| commit | 448a834f89add24191f73661e6133062cc580317 (patch) | |
| tree | a7cba83caa1f35c2501f16924e2018d10a1bb71c | |
| parent | 19426c4988aa85298c1b4caf2889d37ec5c80fea (diff) | |
| download | linux-448a834f89add24191f73661e6133062cc580317.tar.gz linux-448a834f89add24191f73661e6133062cc580317.zip | |
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) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
| -rw-r--r-- | fs/f2fs/data.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index bb701fa977bf..8575358f5190 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; |
