On Wed, Jan 08, 2025 at 10:08:05PM -0800, Christoph Hellwig wrote: > On Wed, Jan 08, 2025 at 04:54:02PM -0800, Darrick J. Wong wrote: > > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > > > We have to lock the buffer before we can delete the dquot log item from > > the buffer's log item list. > > Looks good: > > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > > I did look a bit over how the inode items handles the equivalent > functionality, and AFAICS there is no direct one. xfs_qm_dquot_isolate > is for shrinking the dquot LRU, which is handled through the VFS > for inodes. xfs_qm_dqpurge tries to write back dirty dquots, which > I thought is dead code as all dirty dquots should have log > items and thus be handled through the log and AIL, but it seems like > xfs_qm_quotacheck_dqadjust dirties dquots without logging them. > So we'll need that for now, but I wonder if we should convert this > last bit of meatada to also go through our normal log mechanism > eventually? What if we replace it with the one in scrub/repair_quotacheck.c? :) --D