On Sun, Feb 23, 2025 at 01:47:52AM +0000, Matthew Wilcox wrote: > - Choose a data structure in the VFS to store this range information > (a tree of some kind) > - Design a protocol such that the VFS can query this information about > a range of a particular file, and the filesystem can invalidate the > VFS's knowledge That information is always going to be incoherent in some way. Reads are already done without i_rwsem for most file systems and there is further work on reducing locking. So anything needs to come from inside the file system itself. That probably means you can't reduce the folio allocation overhead, but at least you don't have to persistently use the memory.