xfs: clear BAD_SUMMARY if unmounting an unhealthy filesystem
If we know the filesystem metadata isn't healthy during unmount, we want to encourage the administrator to run xfs_repair right away. We can't do this if BAD_SUMMARY will cause an unclean log unmount to force summary recalculation, so turn it off if the fs is bad. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -118,6 +118,8 @@ void xfs_inode_mark_healthy(struct xfs_inode *ip, unsigned int mask);
|
||||
void xfs_inode_measure_sickness(struct xfs_inode *ip, unsigned int *sick,
|
||||
unsigned int *checked);
|
||||
|
||||
void xfs_health_unmount(struct xfs_mount *mp);
|
||||
|
||||
/* Now some helpers. */
|
||||
|
||||
static inline bool
|
||||
|
Reference in New Issue
Block a user