diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-01-07 16:11:30 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-01-09 10:55:19 -0800 |
commit | 7cb41b1d14e139f7f4247fc29af25e59139bc1ac (patch) | |
tree | 1a9191f7e8ad84b766992ec039ece0754ab28513 /fs/xfs | |
parent | d29f781c32b1d1366c8ac10be31dad1e1f39c336 (diff) | |
download | blackbird-op-linux-7cb41b1d14e139f7f4247fc29af25e59139bc1ac.tar.gz blackbird-op-linux-7cb41b1d14e139f7f4247fc29af25e59139bc1ac.zip |
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/scrub/repair.h | 1 |
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; } |