* [f2fs-dev] [PATCH -next] f2fs: use COMPRESS_MAPPING to get compress cache mapping
@ 2022-08-30 6:55 Zhang Qilong via Linux-f2fs-devel
2022-09-06 2:55 ` Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Qilong via Linux-f2fs-devel @ 2022-08-30 6:55 UTC (permalink / raw)
To: jaegeuk, chao; +Cc: linux-f2fs-devel
Just use the defined COMPRESS_MAPPING to get compress cache
mapping instaed of direct accessing name.
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
---
fs/f2fs/compress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index 70e97075e535..06c3629a2597 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -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);
--
2.25.1
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-06 2:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30 6:55 [f2fs-dev] [PATCH -next] f2fs: use COMPRESS_MAPPING to get compress cache mapping Zhang Qilong via Linux-f2fs-devel
2022-09-06 2:55 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).