Re: [PATCH 20/41] fs: Ignore inode metadata buffers in inode_lru_isolate()
Jan Kara <[email protected]> Tue, 24 Mar 2026 13:51:18 +0100
| Newsgroups | gmane.linux.kernel.aio.general,gmane.linux.file-systems,gmane.linux.block,gmane.comp.file-systems.ext4,gmane.linux.kernel.mm |
|---|---|
| Message-ID | <flb3si2jxjg4gy7beqxr3zt3tvq74msftee5ewmwgpd77vqj5r@h5rqgjuws3zr> |
On Mon 23-03-26 22:42:18, Christoph Hellwig wrote: > On Fri, Mar 20, 2026 at 02:41:15PM +0100, Jan Kara wrote: > > There are only a few filesystems that use generic tracking of inode > > metadata buffer heads. As such it is mostly pointless to verify such > > attached buffer heads during inode reclaim. Drop the handling from > > inode_lru_isolate(). > > But the code isn't just verifying (which to me implies debug code), > but doing actual work to remove the buffers. This does look like a > behavior change to me, buf it is not due to previous patches or > because it was dead code, it would help greatly to explain that here. Right, I've rewritten the changelog to explain things better: There are only a few filesystems that use generic tracking of inode metadata buffer heads. As such the logic to reclaim tracked metadata buffer heads in inode_lru_isolate() doesn't bring a benefit big enough to justify intertwining of inode reclaim and metadata buffer head tracking. Just treat tracked metadata buffer heads as any other metadata filesystem has to properly clean up on inode eviction and stop handling it in inode_lru_isolate(). As a result filesystems using generic tracking of metadata buffer heads may now see dirty metadata buffers in their .evict methods more often which can slow down inode reclaim but given these filesystems aren't used in performance demanding setups we should be fine. Honza -- Jan Kara <[email protected]> SUSE Labs, CR -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to [email protected]. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: <a href=mailto:"[email protected]">[email protected]</a>