Re: [PATCH v3] fuse: back uncached readdir buffers with pages

From: Miklos Szeredi

Date: Tue May 19 2026 - 06:11:55 EST


On Tue, 19 May 2026 at 02:47, Matthew R. Ochs <mochs@xxxxxxxxxx> wrote:

> This was observed with a 64K-page guest on a 4K-page host, using an
> overlayfs mount whose lower directory is on virtiofs. Reading a merged
> directory through overlayfs failed with:
>
> ls: reading directory '<path>': Cannot allocate memory

IDGI, the patch makes FUSE_READDIR supply an array of folios.
Virtiofs shouldn't need to allocate a large argbuf after that.

What am I missing?

Thanks,
Miklos