]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
f2fs: delete obsolete FI_DROP_CACHE
authorChao Yu <chao@kernel.org>
Sun, 10 Dec 2023 09:20:36 +0000 (17:20 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:59 +0000 (18:19 -0400)
[ 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>
fs/f2fs/data.c
fs/f2fs/f2fs.h

index fee4c7130edaa19646761654f4107381f21646c3..7bfccb4570a2b7a36287ec75c4de6edb6b5a7495 100644 (file)
@@ -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) {
                /*
index 7acbc78b864b4648358b462eb781a39b7a6b7cbf..d64114de0791906cfad7c879fe82a5bf73fae4f0 100644 (file)
@@ -774,7 +774,6 @@ enum {
        FI_UPDATE_WRITE,        /* inode has in-place-update data */
        FI_NEED_IPU,            /* used for ipu per file */
        FI_ATOMIC_FILE,         /* indicate atomic file */
-       FI_DROP_CACHE,          /* drop dirty page cache */
        FI_DATA_EXIST,          /* indicate data exists */
        FI_INLINE_DOTS,         /* indicate inline dot dentries */
        FI_SKIP_WRITES,         /* should skip data page writeback */
@@ -3271,11 +3270,6 @@ static inline bool f2fs_is_cow_file(struct inode *inode)
        return is_inode_flag_set(inode, FI_COW_FILE);
 }
 
-static inline bool f2fs_is_drop_cache(struct inode *inode)
-{
-       return is_inode_flag_set(inode, FI_DROP_CACHE);
-}
-
 static inline void *inline_data_addr(struct inode *inode, struct page *page)
 {
        struct f2fs_inode *ri = F2FS_INODE(page);