xfs: always check the rtbitmap and rtsummary files
authorDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:42 +0000 (10:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:42 +0000 (10:03 -0800)
XFS filesystems always have a realtime bitmap and summary file, even if
there has never been a realtime volume attached.  Always check them.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/scrub.c

index e46b3afb546746e6377e96efd76c5023802817cb..a7019c9bba0c54cce12402798d1085c929180d0e 100644 (file)
@@ -328,14 +328,12 @@ static const struct xchk_meta_ops meta_scrub_ops[] = {
                .type   = ST_FS,
                .setup  = xchk_setup_rtbitmap,
                .scrub  = xchk_rtbitmap,
-               .has    = xfs_has_realtime,
                .repair = xrep_notsupported,
        },
        [XFS_SCRUB_TYPE_RTSUM] = {      /* realtime summary */
                .type   = ST_FS,
                .setup  = xchk_setup_rtsummary,
                .scrub  = xchk_rtsummary,
-               .has    = xfs_has_realtime,
                .repair = xrep_notsupported,
        },
        [XFS_SCRUB_TYPE_UQUOTA] = {     /* user quota */