]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page_alloc.c:__setup_per_zone_wmarks: make min_pages unsigned long
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Feb 2013 01:26:13 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:17 +0000 (16:46 +1100)
commita670f3b676a910f1a51a3fbdd3b4cc71e53d0d42
treef5f4d90eea6e97a291a213ea77de37b528dd8794
parenta71dcb8424677a14c4a287ba2d79041104d8505b
mm/page_alloc.c:__setup_per_zone_wmarks: make min_pages unsigned long

`int' is an inappropriate type for a number-of-pages counter.

While we're there, use the clamp() macro.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Satoru Moriya <satoru.moriya@hds.com>
Cc: Simon Jeons <simon.jeons@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c