diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-04-12 16:41:18 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-04-15 03:15:58 +0200 |
commit | 89d139d5ad465e35a9c602421eb1a1ff08ea530d (patch) | |
tree | 68010b421d6581a202ef198f5dd12cba1020cdd5 /fs/xfs/xfs_itable.c | |
parent | xfs: report AG health via AG geometry ioctl (diff) | |
download | linux-89d139d5ad465e35a9c602421eb1a1ff08ea530d.tar.xz linux-89d139d5ad465e35a9c602421eb1a1ff08ea530d.zip |
xfs: report inode health via bulkstat
Use space in the bulkstat ioctl structure to report any problems
observed with the inode.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r-- | fs/xfs/xfs_itable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index 942e4aa5e729..1e1a0af1dd34 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c @@ -18,6 +18,7 @@ #include "xfs_error.h" #include "xfs_trace.h" #include "xfs_icache.h" +#include "xfs_health.h" /* * Return stat information for one inode. @@ -84,6 +85,7 @@ xfs_bulkstat_one_int( buf->bs_extsize = dic->di_extsize << mp->m_sb.sb_blocklog; buf->bs_extents = dic->di_nextents; memset(buf->bs_pad, 0, sizeof(buf->bs_pad)); + xfs_bulkstat_health(ip, buf); buf->bs_dmevmask = dic->di_dmevmask; buf->bs_dmstate = dic->di_dmstate; buf->bs_aextents = dic->di_anextents; |