diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2014-08-06 16:08:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 18:01:22 -0700 |
commit | 61e02c745721a361ba238e70bfa1c84a4df1a4b7 (patch) | |
tree | 955aed6249a0dc68faa09bec44acbd68ffb5fbbe /mm/pgtable-generic.c | |
parent | 618fde872163e782183ce574c77f1123e2be8887 (diff) | |
download | blackbird-op-linux-61e02c745721a361ba238e70bfa1c84a4df1a4b7.tar.gz blackbird-op-linux-61e02c745721a361ba238e70bfa1c84a4df1a4b7.zip |
mm: memcontrol: clean up reclaim size variable use in try_charge()
Charge reclaim and OOM currently use the charge batch variable, but
batching is already disabled at that point. To simplify the charge
logic, the batch variable is reset to the original request size when
reclaim is entered, so it's functionally equal, but it's misleading.
Switch reclaim/OOM to nr_pages, which is the original request size.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/pgtable-generic.c')
0 files changed, 0 insertions, 0 deletions