xfs: force summary counter recalc at next mount
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 20 Jul 2018 16:28:40 +0000 (09:28 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 23 Jul 2018 16:08:01 +0000 (09:08 -0700)
commitf467cad95f5e3814fda408dea76eb962ab19685d
treed7785b7c90559b5ded75cdf1f90625a41a276ba6
parent53235f22151ea7229e1251e46e68098bcf74922d
xfs: force summary counter recalc at next mount

Use the "bad summary count" mount flag from the previous patch to skip
writing the unmount record to force log recovery at the next mount,
which will recalculate the summary counters for us.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_errortag.h
fs/xfs/xfs_error.c
fs/xfs/xfs_log.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h