diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2022-08-30 14:55:15 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-10-04 13:31:42 -0700 |
commit | 173cdf2c32b4b02474006d87648383244c0a6db9 (patch) | |
tree | 0652fbf108a8cd5e214e0936da4535fcf64e0298 /fs/f2fs | |
parent | 280dfeae56e6fbfff21cfece356379e318ae10fe (diff) | |
download | linux-173cdf2c32b4b02474006d87648383244c0a6db9.tar.bz2 |
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/compress.c | 2 |
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); |