]> 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)
commita9c79f18bd864c5602206c5bcc8b3a2569a3d2c2
treed7785b7c90559b5ded75cdf1f90625a41a276ba6
parentfd19624eb9ad5bc8b2f6f19aa187b5cec720fbe3
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