Messages in this thread | | | From | Michal Nazarewicz <> | Subject | Re: [RFC v2] memory-hotplug: remove MIGRATE_ISOLATE from free_area->free_list | Date | Thu, 06 Sep 2012 14:51:39 +0200 |
| |
On Thu, Sep 06 2012, Lai Jiangshan wrote: > +found: > + next_pfn = page_to_pfn(page); > + list_for_each_entry_from(page, &isolated_pages, lru) { > + if (page_to_pfn(page) != next_pfn) > + return false; > + pfn = page_to_pfn(page);
+ pfn = page_to_pfn(page); + if (pfn != next_pfn) + return false;
> + next_pfn = pfn + (1UL << page_order(page)); > + if (next_pfn >= end_pfn) > + return true; > }
-- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michał “mina86” Nazarewicz (o o) ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--[unhandled content-type:application/pgp-signature] | |