Skip to content
Commit b2713af1 authored by Chao Yu's avatar Chao Yu Committed by Sasha Levin
Browse files

f2fs: invalidate meta pages only for post_read required inode

[ Upstream commit 0d5b9d81 ]

After commit e3b49ea3

 ("f2fs: invalidate META_MAPPING before
IPU/DIO write"), invalidate_mapping_pages() will be called to
avoid race condition in between IPU/DIO and readahead for GC.

However, readahead flow is only used for post_read required inode,
so this patch adds check condition to avoids unnecessary page cache
invalidating for non-post_read inode.

Signed-off-by: default avatarChao Yu <chao.yu@oppo.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: fd244524

 ("f2fs: compress: fix to cover normal cluster write with cp_rwsem")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6117d8b7
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