Skip to contentSkip to conversation

f2fs: use COMPRESS_MAPPING to get compress cache mapping

PATCH In review Zhang Qilong via Linux-f2fs-devel 2 participants 2 messages Aug 30, 2022 – Sep 6, 2022 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 fs/f2fs/compress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/compress.c +1 -1
index 70e97075e535..06c3629a2597 100644
@@ -1905,7 +1905,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);
Signature · 8 lines
2.25.1



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel