Repository navigation
Commit f32764b
quota: Convert quota statistics to generic percpu_counter
Generic per-cpu counter has some memory overhead but it is negligible for
modern systems and embedded systems compile without quota support. And code
reuse is a good thing. This patch should fix complain from preemptive kernels
which was introduced by dde9588.
[Jan Kara: Fixed patch to work on 32-bit archs as well]
Reported-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>1 parent 1513b02 commit f32764b
2 files changed
Lines changed: 17 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | 231 | | |
236 | 232 | | |
237 | 233 | | |
| |||
676 | 672 | | |
677 | 673 | | |
678 | 674 | | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | 675 | | |
696 | 676 | | |
697 | 677 | | |
698 | 678 | | |
699 | | - | |
700 | 679 | | |
701 | 680 | | |
702 | 681 | | |
703 | 682 | | |
704 | 683 | | |
705 | 684 | | |
706 | 685 | | |
707 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
708 | 689 | | |
709 | 690 | | |
710 | 691 | | |
| |||
2497 | 2478 | | |
2498 | 2479 | | |
2499 | 2480 | | |
2500 | | - | |
2501 | | - | |
2502 | 2481 | | |
2503 | | - | |
2504 | | - | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
2505 | 2486 | | |
2506 | 2487 | | |
2507 | 2488 | | |
| |||
2594 | 2575 | | |
2595 | 2576 | | |
2596 | 2577 | | |
2597 | | - | |
| 2578 | + | |
2598 | 2579 | | |
2599 | 2580 | | |
2600 | 2581 | | |
| |||
2612 | 2593 | | |
2613 | 2594 | | |
2614 | 2595 | | |
2615 | | - | |
2616 | | - | |
2617 | | - | |
2618 | | - | |
2619 | | - | |
2620 | | - | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
2621 | 2601 | | |
2622 | 2602 | | |
2623 | 2603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
| 177 | + | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 264 | + | |
269 | 265 | | |
270 | 266 | | |
271 | 267 | | |
272 | 268 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 269 | + | |
278 | 270 | | |
279 | 271 | | |
280 | 272 | | |
| |||
0 commit comments