From: Darrick J. Wong Date: Thu, 21 Nov 2024 00:24:17 +0000 (-0800) Subject: xfs_spaceman: report health of metadir inodes too X-Git-Tag: v6.13.0~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b480672f1fa1911f7b0e0b38a0e58925313b8919;p=thirdparty%2Fxfsprogs-dev.git xfs_spaceman: report health of metadir inodes too If the filesystem has a metadata directory tree, we should include those inodes in the health report. Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig --- diff --git a/spaceman/health.c b/spaceman/health.c index d88a7f6c..c4d57036 100644 --- a/spaceman/health.c +++ b/spaceman/health.c @@ -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);