]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_spaceman: report health of metadir inodes too
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jul 2023 00:22:16 +0000 (17:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Nov 2023 23:03:31 +0000 (15:03 -0800)
If the filesystem has a metadata directory tree, we should include those
inodes in the health report.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
spaceman/health.c

index 8ba78152cb6cff0ed4b173961f157035e6c3724e..47cf909949227c40652288363a2ef43e6cd502a1 100644 (file)
@@ -328,6 +328,8 @@ report_bulkstat_health(
 
        if (agno != NULLAGNUMBER)
                xfrog_bulkstat_set_ag(breq, agno);
+       if (file->xfd.fsgeom.flags & XFS_FSOP_GEOM_FLAGS_METADIR)
+               breq->hdr.flags |= XFS_BULK_IREQ_METADIR;
 
        do {
                error = -xfrog_bulkstat(&file->xfd, breq);