xfs: remove bogus assertion when online repair isn't enabled
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 8 Jan 2020 00:11:30 +0000 (16:11 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Jan 2020 18:55:19 +0000 (10:55 -0800)
commit7cb41b1d14e139f7f4247fc29af25e59139bc1ac
tree1a9191f7e8ad84b766992ec039ece0754ab28513
parentd29f781c32b1d1366c8ac10be31dad1e1f39c336
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>
fs/xfs/scrub/repair.h