Re: [f2fs-dev] [PATCH v2] f2fs: evict: truncate page cache before clear_inode
From: Chao Yu
Date: Sun Mar 22 2026 - 23:14:27 EST
On 3/19/26 23:11, kth5965@xxxxxxxxx wrote:
> 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.
Please go ahead w/ this, thank you!
Thanks,
>
> Thanks.