diff options
author | Zhiguo Niu <zhiguo.niu@unisoc.com> | 2024-01-18 13:48:31 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-02-05 18:58:41 -0800 |
commit | f289e95fffd5e6b59d175cb1e653db0daad7e456 (patch) | |
tree | 6610b9304cd7b804676a694b0de0db908f4778c4 /fs/f2fs | |
parent | 2f9420d3a94aeebd92db88f00f4f2f1a3bd3f6cf (diff) |
f2fs: compress: remove some redundant codes in f2fs_cache_compressed_page
Just remove some redundant codes, no logic change.
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.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/compress.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index 0fd839358c15..3dc488ce882b 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1889,12 +1889,8 @@ void f2fs_cache_compressed_page(struct f2fs_sb_info *sbi, struct page *page, set_page_private_data(cpage, ino); - if (!f2fs_is_valid_blkaddr(sbi, blkaddr, DATA_GENERIC_ENHANCE_READ)) - goto out; - memcpy(page_address(cpage), page_address(page), PAGE_SIZE); SetPageUptodate(cpage); -out: f2fs_put_page(cpage, 1); } |