Re: [f2fs-dev] [PATCH v2] f2fs: evict: truncate page cache before clear_inode
From: kth5965
Date: Thu Mar 19 2026 - 11:11:57 EST
Hi Chao,
Yes, I agree with your point.
I also think 2) is useful to detect the corrupted inode earlier and to
make the issue visible through log and returned error.
But 2) alone does not seem sufficient, because we can still reach inode
cleanup later, and then `f2fs_evict_inode()` can still go through the
inline conversion path.
So it makes sense to me that we need both:
1. earlier detection / guarding in sanity check
2. fixing the empty inline conversion path so page #0 cache is not left
behind
If this understanding is correct, I will prepare the fix in that
direction.
Thanks.