All of lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH] f2fs: remove redunant invalidate compress pages
@ 2021-12-13  8:58 Fengnan Chang
  2021-12-21  3:59 ` 常凤楠
  0 siblings, 1 reply; 4+ messages in thread
From: Fengnan Chang @ 2021-12-13  8:58 UTC (permalink / raw)
  To: jaegeuk, chao; +Cc: Fengnan Chang, linux-f2fs-devel

Compress page will invalidate in truncate block process too, so remove
redunant invalidate compress pages in f2fs_evict_inode.

Signed-off-by: Fengnan Chang <changfengnan@vivo.com>
---
 fs/f2fs/inode.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index 935016e56010..595270646d69 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -751,9 +751,6 @@ void f2fs_evict_inode(struct inode *inode)
 	trace_f2fs_evict_inode(inode);
 	truncate_inode_pages_final(&inode->i_data);
 
-	if (test_opt(sbi, COMPRESS_CACHE) && f2fs_compressed_file(inode))
-		f2fs_invalidate_compress_pages(sbi, inode->i_ino);
-
 	if (inode->i_ino == F2FS_NODE_INO(sbi) ||
 			inode->i_ino == F2FS_META_INO(sbi) ||
 			inode->i_ino == F2FS_COMPRESS_INO(sbi))
-- 
2.32.0



_______________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2021-12-27  8:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-13  8:58 [f2fs-dev] [PATCH] f2fs: remove redunant invalidate compress pages Fengnan Chang
2021-12-21  3:59 ` 常凤楠
2021-12-27  8:10   ` Chao Yu
     [not found]   ` <ALcAxAD2E83dq*nz4YDAgqre.9.1640592660011.Hmail.changfengnan@vivo.com.@PDQwZTYwNGRlLWM1OWEtYjRlOC02MjY2LTk5YmQzYWRkZTVmZkBrZXJuZWwub3JnPg==>
2021-12-27  8:39     ` 常凤楠

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.