Re: [RFC PATCH v5 05/19] memory-hotplug: check whether memory ispresent or not

From: Tony Luck
Date: Fri Jul 27 2012 - 16:17:18 EST


On Fri, Jul 27, 2012 at 3:28 AM, Wen Congyang <wency@xxxxxxxxxxxxxx> wrote:
> +static inline int pfns_present(unsigned long pfn, unsigned long nr_pages)
> +{
> + int i;
> + for (i = 0; i < nr_pages; i++) {
> + if (pfn_present(pfn + 1))

Typo? I think you meant "pfn + i"

> + continue;
> + else
> + return -EINVAL;
> + }
> + return 0;
> +}

-Tony
--
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/