]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite9b8320d877b6ee5d6717dcbf1086fe397b7ce9b
treed7785b7c90559b5ded75cdf1f90625a41a276ba6
parent4887a199d0d6d6a2e9891ea796a634ce63f1e9b4
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