Re: [PATCH 1/2] mm/vmalloc: Introduce vmap_file()

2025-02-06 Thread Vishal Moola
On Thu, Jan 30, 2025 at 11:09 PM Christoph Hellwig wrote: > > On Thu, Jan 30, 2025 at 04:18:05PM -0800, Vishal Moola (Oracle) wrote: > > + rcu_read_lock(); > > + xas_for_each(&xas, folio, last) { > > This only maps folios currently in the page cache, which makes it > usefull for everything

Re: [PATCH 1/2] mm/vmalloc: Introduce vmap_file()

2025-01-30 Thread Christoph Hellwig
On Thu, Jan 30, 2025 at 04:18:05PM -0800, Vishal Moola (Oracle) wrote: > + rcu_read_lock(); > + xas_for_each(&xas, folio, last) { This only maps folios currently in the page cache, which makes it usefull for everything except ramfs-style purely in-memory file systems. I.e. for the shmem us