diff options
author | Johannes Weiner <[email protected]> | 2012-07-31 16:45:40 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-07-31 18:42:48 -0700 |
commit | 24467cacc03cf8b156d4c6786697e5e5d13c9321 (patch) | |
tree | d62344582c4b980226a65faa6ceefabb6d106204 /net/lapb/lapb_in.c | |
parent | 62ba7442c8e286b6dd68fe82a3cc85c9414d909b (diff) |
mm: memcg: remove needless !mm fixup to init_mm when charging
It does not matter to __mem_cgroup_try_charge() if the passed mm is NULL
or init_mm, it will charge the root memcg in either case.
Also fix up the comment in __mem_cgroup_try_charge() that claimed the
init_mm would be charged when no mm was passed. It's not really
incorrect, but confusing. Clarify that the root memcg is charged in this
case.
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Wanpeng Li <[email protected]>
Cc: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions