Skip to content

Commit 173cdf2

Browse files
Zhang QilongJaegeuk Kim
authored andcommitted
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 <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 280dfea commit 173cdf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/compress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ bool f2fs_load_compressed_page(struct f2fs_sb_info *sbi, struct page *page,
19011901

19021902
void f2fs_invalidate_compress_pages(struct f2fs_sb_info *sbi, nid_t ino)
19031903
{
1904-
struct address_space *mapping = sbi->compress_inode->i_mapping;
1904+
struct address_space *mapping = COMPRESS_MAPPING(sbi);
19051905
struct folio_batch fbatch;
19061906
pgoff_t index = 0;
19071907
pgoff_t end = MAX_BLKADDR(sbi);

0 commit comments

Comments
 (0)