~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal

« back to all changes in this revision

Viewing changes to mm/page_alloc.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-04kado7d1u2er2rl
Tags: 3.2.0-16.25
Add new lowlatency kernel flavour

Show diffs side-by-side

added added

removed removed

Lines of Context:
5608
5608
bool is_pageblock_removable_nolock(struct page *page)
5609
5609
{
5610
5610
        struct zone *zone = page_zone(page);
 
5611
        unsigned long pfn = page_to_pfn(page);
 
5612
 
 
5613
        /*
 
5614
         * We have to be careful here because we are iterating over memory
 
5615
         * sections which are not zone aware so we might end up outside of
 
5616
         * the zone but still within the section.
 
5617
         */
 
5618
        if (!zone || zone->zone_start_pfn > pfn ||
 
5619
                        zone->zone_start_pfn + zone->spanned_pages <= pfn)
 
5620
                return false;
 
5621
 
5611
5622
        return __count_immobile_pages(zone, page, 0);
5612
5623
}
5613
5624