summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorMichal Hocko2012-01-11 00:08:02 +0100
committerLinus Torvalds2012-01-11 01:30:44 +0100
commitdf0a6daa01fa3856c08f4274d4f21a8092caa480 (patch)
tree089c112e98c87c4326443c21711bf9410c1989ce /mm/mmap.c
parentbootmem: micro optimize freeing pages in bulk (diff)
downloadkernel-qcow2-linux-df0a6daa01fa3856c08f4274d4f21a8092caa480.tar.gz
kernel-qcow2-linux-df0a6daa01fa3856c08f4274d4f21a8092caa480.tar.xz
kernel-qcow2-linux-df0a6daa01fa3856c08f4274d4f21a8092caa480.zip
mm: fix off-by-two in __zone_watermark_ok()
Commit 88f5acf88ae6 ("mm: page allocator: adjust the per-cpu counter threshold when memory is low") changed the form how free_pages is calculated but it forgot that we used to do free_pages - ((1 << order) - 1) so we ended up with off-by-two when calculating free_pages. Reported-by: Wang Sheng-Hui <shhuiw@gmail.com> Signed-off-by: Michal Hocko <mhocko@suse.cz> Acked-by: Mel Gorman <mgorman@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions