diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-07-20 18:28:40 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-07-23 18:08:01 +0200 |
commit | f467cad95f5e3814fda408dea76eb962ab19685d (patch) | |
tree | d7785b7c90559b5ded75cdf1f90625a41a276ba6 /fs/xfs/xfs_mount.h | |
parent | xfs: refactor unmount record write (diff) | |
download | linux-f467cad95f5e3814fda408dea76eb962ab19685d.tar.xz linux-f467cad95f5e3814fda408dea76eb962ab19685d.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r-- | fs/xfs/xfs_mount.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h index f08907db9c61..540353a51478 100644 --- a/fs/xfs/xfs_mount.h +++ b/fs/xfs/xfs_mount.h @@ -435,5 +435,6 @@ int xfs_zero_extent(struct xfs_inode *ip, xfs_fsblock_t start_fsb, struct xfs_error_cfg * xfs_error_get_cfg(struct xfs_mount *mp, int error_class, int error); +void xfs_force_summary_recalc(struct xfs_mount *mp); #endif /* __XFS_MOUNT_H__ */ |