Skip to content

Commit bb6e1c8

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: delete obsolete FI_DROP_CACHE
FI_DROP_CACHE was introduced in commit 1e84371 ("f2fs: change atomic and volatile write policies") for volatile write feature, after commit 7bc155f ("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>
1 parent a539363 commit bb6e1c8

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

fs/f2fs/data.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,9 +2892,6 @@ int f2fs_write_single_data_page(struct page *page, int *submitted,
28922892

28932893
zero_user_segment(page, offset, PAGE_SIZE);
28942894
write:
2895-
if (f2fs_is_drop_cache(inode))
2896-
goto out;
2897-
28982895
/* Dentry/quota blocks are controlled by checkpoint */
28992896
if (S_ISDIR(inode->i_mode) || quota_inode) {
29002897
/*

fs/f2fs/f2fs.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,6 @@ enum {
781781
FI_UPDATE_WRITE, /* inode has in-place-update data */
782782
FI_NEED_IPU, /* used for ipu per file */
783783
FI_ATOMIC_FILE, /* indicate atomic file */
784-
FI_DROP_CACHE, /* drop dirty page cache */
785784
FI_DATA_EXIST, /* indicate data exists */
786785
FI_INLINE_DOTS, /* indicate inline dot dentries */
787786
FI_SKIP_WRITES, /* should skip data page writeback */
@@ -3278,11 +3277,6 @@ static inline bool f2fs_is_cow_file(struct inode *inode)
32783277
return is_inode_flag_set(inode, FI_COW_FILE);
32793278
}
32803279

3281-
static inline bool f2fs_is_drop_cache(struct inode *inode)
3282-
{
3283-
return is_inode_flag_set(inode, FI_DROP_CACHE);
3284-
}
3285-
32863280
static inline void *inline_data_addr(struct inode *inode, struct page *page)
32873281
{
32883282
struct f2fs_inode *ri = F2FS_INODE(page);

0 commit comments

Comments
 (0)