From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:42 +0000 (+1100) Subject: page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory-fix-fix X-Git-Tag: next-20130220~1^2~454 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f101a1ee3d0697d1b6bdfdcb6c2e61cef11f46e6;p=karo-tx-linux.git page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory-fix-fix fix min() warning Cc: Paul Szabo Cc: Rik van Riel Cc: Wu Fengguang Signed-off-by: Andrew Morton --- diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 227a655c27dc..650ebd0505f7 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -242,7 +242,7 @@ static unsigned long global_dirtyable_memory(void) x -= highmem_dirtyable_memory(x); /* Subtract min_free_kbytes */ - x -= min(x, min_free_kbytes >> (PAGE_SHIFT - 10)); + x -= min_t(unsigned long, x, min_free_kbytes >> (PAGE_SHIFT - 10)); return x + 1; /* Ensure that we never return 0 */ }