summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-01-08 03:11:30 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2020-01-09 21:55:19 +0300
commit7cb41b1d14e139f7f4247fc29af25e59139bc1ac (patch)
tree1a9191f7e8ad84b766992ec039ece0754ab28513
parentd29f781c32b1d1366c8ac10be31dad1e1f39c336 (diff)
downloadlinux-7cb41b1d14e139f7f4247fc29af25e59139bc1ac.tar.xz
xfs: remove bogus assertion when online repair isn't enabled
We don't need to assert on !REPAIR in the stub version of xrep_calc_ag_resblks that is called when online repair hasn't been compiled into the kernel because none of the repair code will ever run. Reported-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--fs/xfs/scrub/repair.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/scrub/repair.h b/fs/xfs/scrub/repair.h
index 60c61d7052a8..c3422403b169 100644
--- a/fs/xfs/scrub/repair.h
+++ b/fs/xfs/scrub/repair.h
@@ -75,7 +75,6 @@ static inline xfs_extlen_t
xrep_calc_ag_resblks(
struct xfs_scrub *sc)
{
- ASSERT(!(sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR));
return 0;
}