Lines Matching defs:counter
1087 * correct counter value and this is irrelevant.
1089 * For non-lazy counter filesystems, this doesn't matter at all because
1140 struct percpu_counter *counter,
1150 ASSERT(counter == &mp->m_fdblocks || counter == &mp->m_frextents);
1151 has_resv_pool = (counter == &mp->m_fdblocks);
1162 percpu_counter_add(counter, delta);
1174 percpu_counter_add(counter, delta);
1184 * If the counter has a value of less than 2 * max batch size,
1188 if (__percpu_counter_compare(counter, 2 * XFS_FDBLOCKS_BATCH,
1207 percpu_counter_add_batch(counter, delta, batch);
1208 if (__percpu_counter_compare(counter, set_aside,
1219 percpu_counter_add(counter, -delta);
1391 * Update the in-core delayed block counter.
1393 * We prefer to update the counter without having to take a spinlock for every
1394 * counter update (i.e. batching). Each change to delayed allocation
1395 * reservations can change can easily exceed the default percpu counter