]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_spaceman: report health of metadir inodes too
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:51 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:13:17 +0000 (17:13 -0700)
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 d88a7f6c6e53f2966a4b9d461cd1f2f1d63be062..c4d570363fbbf1436e82c7a0f658f5c81b09856a 100644 (file)
@@ -324,6 +324,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);