Re: [PATCH v2] erofs: use dedicated meta inodes for file-backed mounts

From: Christoph Hellwig

Date: Wed Aug 19 2026 - 01:56:12 EST


On Tue, Aug 11, 2026 at 05:07:17PM +0800, Gao Xiang wrote:
> access on file-backed mounts (although I still don't think it is
> necessary due to the EROFS immutable model). As the result, metadata
> cache won't use the page cache of backing inodes anymore.
>
> The "managed cache" was originally used to cache physical compressed
> data according to the current cache strategy and I/O patterns; since
> file-backed mounts also need to access physical data for metadata
> access, it's natural to reuse the managed cache for this too, providing
> a unique inode for all physical data access.

This look sane. Any reason to not use the meta inode unconditionally
to simplify the code?