Re: [f2fs-dev] [PATCH] f2fs: fix to prevent clearing immutable for large folio supported inode
From: Jaegeuk Kim
Date: Mon Feb 23 2026 - 22:55:51 EST
On 01/23, Nanzhe Zhao wrote:
> Hi Kim:
> At 2026-01-23 07:10:05, "Jaegeuk Kim" <jaegeuk@xxxxxxxxxx> wrote:
>
> >
> >Yes, I was hitting some issues when I convert the mapping while inode is alive.
> >So, for now, we should set it in f2fs_iget() only.
> >
>
> What about using mapping_set_xxx functions in f2fs_new_inode then?
How can we guarantee this will be a read-only file?
> It maybe be a bit odd to me that we create a immutable file but we can
> only get large folios for this inode when the inode is evicted and get
> by f2fs_iget again, not get large folios by the first place.
>
> Thanks,
> Nanzhe Zhao