Lines Matching full:we
24 * The basics of filesystem summary counter checking are that we iterate the
27 * Then we compare what we computed against the in-core counters.
30 * While we /could/ freeze the filesystem and scramble around the AGs counting
31 * the free blocks, in practice we prefer not do that for a scan because
32 * freezing is costly. To get around this, we added a per-cpu counter of the
33 * delalloc reservations so that we can rotor around the AGs relatively
34 * quickly, and we allow the counts to be slightly off because we're not taking
35 * any locks while we do this.
37 * So the first thing we do is warm up the buffer cache in the setup routine by
40 * structures as quickly as it can. We snapshot the percpu counters before and
48 * we'll allow ourselves to be off by at least this (arbitrary) amount.
59 * This function runs during the setup phase /before/ we start checking any
132 /* We must get the incore counters set up before we can proceed. */ in xchk_setup_fscounters()
138 * Pause background reclaim while we're scrubbing to reduce the in xchk_setup_fscounters()
222 /* Bail out if the values we compute are totally nonsense. */ in xchk_fscount_aggregate_agcounts()
229 * If ifree > icount then we probably had some perturbation in the in xchk_fscount_aggregate_agcounts()
230 * counters while we were calculating things. We'll try a few times in xchk_fscount_aggregate_agcounts()
246 * We neither locked nor froze anything in the filesystem while aggregating the
248 * could have changed. We know the @old_value of the summation of the counter
249 * before the aggregation, and we re-sum the counter now. If the expected
250 * value falls between the two summations, we're ok.
252 * Otherwise, we /might/ have a problem. If the change in the summations is
253 * more than we want to tolerate, the filesystem is probably busy and we should
286 * might just be busy and so we'll mark the scrub incomplete. Return in xchk_fscount_within_range()
287 * true here so that we don't mark the counter corrupt. in xchk_fscount_within_range()
292 * userspace that we need quiesce permission. in xchk_fscount_within_range()
343 /* Compare the in-core counters with whatever we counted. */ in xchk_fscounters()