Internal logs are not considered free space, so for the data device
they've already been subtracted from xfs_fsop_counts::freedata by
XFS_IOC_FSCOUNTS. This causes overcounting in the phase 7 reporting.
Cc: linux-xfs@vger.kernel.org # v7.0.0
Fixes: 95a92c5cecb2e1 ("xfs_scrub: perform media scanning of the log region")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
stat_data = totalcount.dbytes;
stat_rt = totalcount.rbytes;
- /* only count internal logs for data device summary */
- if (!ctx->fsinfo.fs_log)
- used_data += cvt_off_fsb_to_b(&ctx->mnt, l_blocks);
-
/*
* Complain if the counts are off by more than 10% unless
* the inaccuracy is less than 32MB worth of blocks or 100 inodes.