]> 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>
Wed, 20 Feb 2013 02:14:02 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:22 +0000 (16:52 +1100)
commit51c4ada6d4d92bf72f18a6412e75d58701260455
tree1fbeb9c02367b131fef8dea76ce3be15a7ee258b
parentad2f37f07b848d7c021e00091f271de35958bd4a
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