Re: [PATCH] mm: page_alloc: simplify drain_zone_pages by using min()
From: Andrew Morton
Date: Mon Jun 16 2014 - 19:13:47 EST
On Mon, 16 Jun 2014 23:08:14 +0200 Michal Nazarewicz <mina86@xxxxxxxxxx> wrote:
> Instead of open-coding getting minimal value of two, just use min macro.
> That is why it is there for. While changing the function also change
> type of batch local variable to match type of per_cpu_pages::batch
> (which is int).
>
I'm not sure why we made all the per_cpu_pages mambers `int'. Unsigned
would make more sense.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/