On Fri, Apr 04, 2025 at 11:09:37AM +0200, Vlastimil Babka wrote: > On 4/3/25 19:12, Matthew Wilcox wrote: > > Ideas still on the table: > > > > - Convert all filesystems to use the XFS inode management scheme. > > Nobody is thrilled by this large amount of work. > > - Find a simpler version of the XFS scheme to implement for other > > filesystems. > > I don't know the XFS scheme, but this situation seems like a match for the > mempool semantics? (I assume it's also a lot of work to implement) Ah; no. evicting an inode may consume an arbitrary amount of memory, run transactions, wait for I/O, etc, etc. We really shouldn't be doing it as part of memory reclaim. I should probably have said that as part of this writeup, so thanks for bringing it up.