diff options
author | Johannes Weiner <[email protected]> | 2016-03-17 14:20:31 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-03-17 15:09:34 -0700 |
commit | 8b5926560fafe80fe764af2aade152d490a96546 (patch) | |
tree | e19024bf01beaf48c724bcf46fb1774a1a93b0b7 /lib/cpu-notifier-error-inject.c | |
parent | b6e6edcfa40561e9c8abe5eecf1c96f8e5fd9c6f (diff) |
mm: memcontrol: clarify the uncharge_list() loop
uncharge_list() does an unusual list walk because the function can take
regular lists with dedicated list_heads as well as singleton lists where
a single page is passed via the page->lru list node.
This can sometimes lead to confusion as well as suggestions to replace
the loop with a list_for_each_entry(), which wouldn't work.
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions