aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2022-08-30 14:55:15 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2022-10-04 13:31:42 -0700
commit173cdf2c32b4b02474006d87648383244c0a6db9 (patch)
tree0652fbf108a8cd5e214e0936da4535fcf64e0298
parentf2fs: return the tmp_ptr directly in __bitmap_ptr (diff)
downloadlinux-dev-173cdf2c32b4b02474006d87648383244c0a6db9.tar.xz
linux-dev-173cdf2c32b4b02474006d87648383244c0a6db9.zip
f2fs: use COMPRESS_MAPPING to get compress cache mapping
Just use the defined COMPRESS_MAPPING to get compress cache mapping instaed of direct accessing name. Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index 730256732a9e..6baaff4c52ba 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -1901,7 +1901,7 @@ bool f2fs_load_compressed_page(struct f2fs_sb_info *sbi, struct page *page,
void f2fs_invalidate_compress_pages(struct f2fs_sb_info *sbi, nid_t ino)
{
- struct address_space *mapping = sbi->compress_inode->i_mapping;
+ struct address_space *mapping = COMPRESS_MAPPING(sbi);
struct folio_batch fbatch;
pgoff_t index = 0;
pgoff_t end = MAX_BLKADDR(sbi);