]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_spaceman: report health of metadir inodes too
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:17 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:26 +0000 (18:01 -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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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);