summaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2023-12-10 12:20:36 +0300
committerSasha Levin <sashal@kernel.org>2024-03-27 01:19:59 +0300
commit5690754e40892bb282ff5656c4e95d44f6639ad2 (patch)
tree51c1b3b22ef56d0f8c1ea16fd1a15d0737aff210 /fs/f2fs/data.c
parenteaf3389c8545487c520d104f9596d810e51301bb (diff)
downloadlinux-5690754e40892bb282ff5656c4e95d44f6639ad2.tar.xz
f2fs: delete obsolete FI_DROP_CACHE
[ Upstream commit bb6e1c8fa5b9b95bbb8e39b6105f8f6550e070fc ] FI_DROP_CACHE was introduced in commit 1e84371ffeef ("f2fs: change atomic and volatile write policies") for volatile write feature, after commit 7bc155fec5b3 ("f2fs: kill volatile write support"), we won't support volatile write, let's delete related codes. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Stable-dep-of: 54607494875e ("f2fs: compress: fix to avoid inconsistence bewteen i_blocks and dnode") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index fee4c7130eda..7bfccb4570a2 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -2891,9 +2891,6 @@ int f2fs_write_single_data_page(struct page *page, int *submitted,
zero_user_segment(page, offset, PAGE_SIZE);
write:
- if (f2fs_is_drop_cache(inode))
- goto out;
-
/* Dentry/quota blocks are controlled by checkpoint */
if (S_ISDIR(inode->i_mode) || quota_inode) {
/*