Thread (36 messages) 36 messages, 6 authors, 2012-08-01

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

From: Tony Luck <tony.luck@intel.com>
Date: 2012-07-27 20:17:25
Also in: linux-acpi, linux-mm, linux-s390, linux-sh, lkml

On Fri, Jul 27, 2012 at 3:28 AM, Wen Congyang [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help