Commit 173cdf2c authored by Zhang Qilong's avatar Zhang Qilong Committed by Jaegeuk Kim

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: default avatarZhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 280dfeae
...@@ -1901,7 +1901,7 @@ bool f2fs_load_compressed_page(struct f2fs_sb_info *sbi, struct page *page, ...@@ -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) 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; struct folio_batch fbatch;
pgoff_t index = 0; pgoff_t index = 0;
pgoff_t end = MAX_BLKADDR(sbi); pgoff_t end = MAX_BLKADDR(sbi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment