Commit 7a70447
mm: memcg: rename and document global_reclaim()
Evidently, global_reclaim() can be a confusing name. Especially that it
used to exist before with a subtly different definition (removed by commit
b5ead35 ("mm: vmscan: naming fixes: global_reclaim() and
sane_reclaim()"). It can be interpreted as non-cgroup reclaim, even
though it returns true for cgroup reclaim on the root memcg (through
memory.reclaim).
Rename it to root_reclaim() in an attempt to make it less ambiguous, and
add documentation to it as well as cgroup_reclaim.
Link: https://lkml.kernel.org/r/20230621023053.432374-1-yosryahmed@google.com
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Reported-by: Johannes Weiner <hannes@cmpxchg.org>
Closes: https://lore.kernel.org/lkml/20230405200150.GA35884@cmpxchg.org/
Acked-by: Yu Zhao <yuzhao@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 7302338 commit 7a70447
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
436 | 437 | | |
437 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
438 | 443 | | |
439 | 444 | | |
440 | 445 | | |
| |||
489 | 494 | | |
490 | 495 | | |
491 | 496 | | |
492 | | - | |
| 497 | + | |
493 | 498 | | |
494 | 499 | | |
495 | 500 | | |
| |||
546 | 551 | | |
547 | 552 | | |
548 | 553 | | |
549 | | - | |
| 554 | + | |
550 | 555 | | |
551 | 556 | | |
552 | 557 | | |
| |||
5325 | 5330 | | |
5326 | 5331 | | |
5327 | 5332 | | |
5328 | | - | |
| 5333 | + | |
5329 | 5334 | | |
5330 | 5335 | | |
5331 | 5336 | | |
| |||
5477 | 5482 | | |
5478 | 5483 | | |
5479 | 5484 | | |
5480 | | - | |
| 5485 | + | |
5481 | 5486 | | |
5482 | 5487 | | |
5483 | 5488 | | |
| |||
5538 | 5543 | | |
5539 | 5544 | | |
5540 | 5545 | | |
5541 | | - | |
| 5546 | + | |
5542 | 5547 | | |
5543 | 5548 | | |
5544 | 5549 | | |
| |||
6260 | 6265 | | |
6261 | 6266 | | |
6262 | 6267 | | |
6263 | | - | |
| 6268 | + | |
6264 | 6269 | | |
6265 | 6270 | | |
6266 | 6271 | | |
| |||
6501 | 6506 | | |
6502 | 6507 | | |
6503 | 6508 | | |
6504 | | - | |
| 6509 | + | |
6505 | 6510 | | |
6506 | 6511 | | |
6507 | 6512 | | |
| |||
0 commit comments