[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140616161341.2f677b79afb4da9250fd4282@linux-foundation.org>
Date: Mon, 16 Jun 2014 16:13:41 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Michal Nazarewicz <mina86@...a86.com>
Cc: Christoph Lameter <clameter@....com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: page_alloc: simplify drain_zone_pages by using
min()
On Mon, 16 Jun 2014 23:08:14 +0200 Michal Nazarewicz <mina86@...a86.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists