]> git.baikalelectronics.ru Git - kernel.git/commit
page-writeback.c: subtract min_free_kbytes from dirtyable memory
authorPaul Szabo <psz@maths.usyd.edu.au>
Sat, 23 Feb 2013 00:34:42 +0000 (16:34 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 24 Feb 2013 01:50:17 +0000 (17:50 -0800)
commitce3807a2ae1d4dc27bdab045e5b6d61f0bd118cc
tree101f5f2373b615bf83838cd13615fd123dfd765c
parentaea2bc71d41ce3fd53261f9a47b5e7ba3457b9d6
page-writeback.c: subtract min_free_kbytes from dirtyable memory

When calculating amount of dirtyable memory, min_free_kbytes should be
subtracted because it is not intended for dirty pages.

Addresses http://bugs.debian.org/695182

[akpm@linux-foundation.org: fix up min_free_kbytes extern declarations]
[akpm@linux-foundation.org: fix min() warning]
Signed-off-by: Paul Szabo <psz@maths.usyd.edu.au>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
kernel/sysctl.c
mm/huge_memory.c
mm/page-writeback.c