Re: [RFC PATCH v5 05/19] memory-hotplug: check whether memory is present or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Tony Luck <tony.luck@xxxxxxxxx>
- Subject: Re: [RFC PATCH v5 05/19] memory-hotplug: check whether memory is present or not
- From: Wen Congyang <wency@xxxxxxxxxxxxxx>
- Date: Mon, 30 Jul 2012 09:57:33 +0800
- Cc: linux-mm@xxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, cmetcalf@xxxxxxxxxx, rientjes@xxxxxxxxxx, liuj97@xxxxxxxxx, len.brown@xxxxxxxxx, benh@xxxxxxxxxxxxxxxxxxx, paulus@xxxxxxxxx, cl@xxxxxxxxx, minchan.kim@xxxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, kosaki.motohiro@xxxxxxxxxxxxxx, Yasuaki ISIMATU <isimatu.yasuaki@xxxxxxxxxxxxxx>
- In-reply-to: <CA+8MBbL+G=xqkWU4xGF3_Ra7KoeoHuzL6QYcRiKqtVZoOBfLdQ@mail.gmail.com>
- List-id: <linux-ia64.vger.kernel.org>
- References: <50126B83.3050201@cn.fujitsu.com> <50126D44.7070608@cn.fujitsu.com> <CA+8MBbL+G=xqkWU4xGF3_Ra7KoeoHuzL6QYcRiKqtVZoOBfLdQ@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4
At 07/28/2012 04:17 AM, Tony Luck Wrote:
> 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"
Typo error.
Thanks for pointing it out.
Wen Congyang
>
>> + continue;
>> + else
>> + return -EINVAL;
>> + }
>> + return 0;
>> +}
>
> -Tony
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]