On Thu, Feb 06, 2025 at 02:33:01PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > In scan_ag_bulkstat, we have a for loop that iterates all the > xfs_bulkstat records in breq->bulkstat. The loop condition test should > test against the array length, not the number of bits set in an > unrelated data structure. If ocount > xi_alloccount then we miss some > inodes; if ocount < xi_alloccount then we've walked off the end of the > array. Look good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>