diff options
author | Yunlei He <heyunlei@oppo.com> | 2023-06-19 23:13:53 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-06-26 06:21:42 -0700 |
commit | cf2423a7555c4b012576c7282fb495ce739d50d4 (patch) | |
tree | 44a4c2b1f6dfc10d33355ad197fda1ace8ce3a56 /fs/f2fs | |
parent | 396d0a28836d42bef595a8843533285abaf64ff7 (diff) |
f2fs: remove unneeded page uptodate check/set
This patch remove unneeded page uptodate check/set in
f2fs_vm_page_mkwrite, which already done in set_page_dirty.
Signed-off-by: Yunlei He <heyunlei@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index fd2cde9d21b0..b1a4de3b53e0 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -149,8 +149,6 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf) zero_user_segment(page, offset, PAGE_SIZE); } set_page_dirty(page); - if (!PageUptodate(page)) - SetPageUptodate(page); f2fs_update_iostat(sbi, inode, APP_MAPPED_IO, F2FS_BLKSIZE); f2fs_update_time(sbi, REQ_TIME); |