Otherwise we can't guarantee that the delalloc and free space counters
are in sync.
Signed-off-by: Christoph Hellwig <hch@lst.de>
* This requires the fs to be frozen, which will disable background
* reclaim and purge all inactive inodes.
*/
- if ((sc->flags & XCHK_TRY_HARDER) || xchk_could_repair(sc)) {
- error = xchk_fscounters_freeze(sc);
- if (error)
- return error;
- }
+ error = xchk_fscounters_freeze(sc);
+ if (error)
+ return error;
return xchk_trans_alloc_empty(sc);
}