Commit 677dc97
mm, memcg: extract memcg maxable seq_file logic to seq_show_memcg_tunable
memcg has a significant number of files exposed to kernfs where their
value is either exposed directly or is "max" in the case of
PAGE_COUNTER_MAX.
This patch makes this generic by providing a single function to do this
work. In combination with the previous patch adding
mem_cgroup_from_seq, this makes all of the seq_show feeder functions
significantly more simple.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Chris Down <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Roman Gushchin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>1 parent aa9694b commit 677dc97
1 file changed
+19
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5353 | 5353 | | |
5354 | 5354 | | |
5355 | 5355 | | |
| 5356 | + | |
| 5357 | + | |
| 5358 | + | |
| 5359 | + | |
| 5360 | + | |
| 5361 | + | |
| 5362 | + | |
| 5363 | + | |
| 5364 | + | |
| 5365 | + | |
5356 | 5366 | | |
5357 | 5367 | | |
5358 | 5368 | | |
| |||
5363 | 5373 | | |
5364 | 5374 | | |
5365 | 5375 | | |
5366 | | - | |
5367 | | - | |
5368 | | - | |
5369 | | - | |
5370 | | - | |
5371 | | - | |
5372 | | - | |
5373 | | - | |
5374 | | - | |
| 5376 | + | |
| 5377 | + | |
5375 | 5378 | | |
5376 | 5379 | | |
5377 | 5380 | | |
| |||
5393 | 5396 | | |
5394 | 5397 | | |
5395 | 5398 | | |
5396 | | - | |
5397 | | - | |
5398 | | - | |
5399 | | - | |
5400 | | - | |
5401 | | - | |
5402 | | - | |
5403 | | - | |
5404 | | - | |
| 5399 | + | |
| 5400 | + | |
5405 | 5401 | | |
5406 | 5402 | | |
5407 | 5403 | | |
| |||
5423 | 5419 | | |
5424 | 5420 | | |
5425 | 5421 | | |
5426 | | - | |
5427 | | - | |
5428 | | - | |
5429 | | - | |
5430 | | - | |
5431 | | - | |
5432 | | - | |
5433 | | - | |
5434 | | - | |
| 5422 | + | |
5435 | 5423 | | |
5436 | 5424 | | |
5437 | 5425 | | |
| |||
5460 | 5448 | | |
5461 | 5449 | | |
5462 | 5450 | | |
5463 | | - | |
5464 | | - | |
5465 | | - | |
5466 | | - | |
5467 | | - | |
5468 | | - | |
5469 | | - | |
5470 | | - | |
5471 | | - | |
| 5451 | + | |
| 5452 | + | |
5472 | 5453 | | |
5473 | 5454 | | |
5474 | 5455 | | |
| |||
6600 | 6581 | | |
6601 | 6582 | | |
6602 | 6583 | | |
6603 | | - | |
6604 | | - | |
6605 | | - | |
6606 | | - | |
6607 | | - | |
6608 | | - | |
6609 | | - | |
6610 | | - | |
6611 | | - | |
| 6584 | + | |
| 6585 | + | |
6612 | 6586 | | |
6613 | 6587 | | |
6614 | 6588 | | |
| |||
0 commit comments