lkml.org 
[lkml]   [2011]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH]mm/page_alloc.c: no need del from lru
    From
    Date

    split_free_page() the page is still free page, it is no need del from lru.

    Signed-off-by: Figo.zhang <figo1802@gmail.com>
    ---
    mm/page_alloc.c | 1 -
    1 files changed, 0 insertions(+), 1 deletions(-)

    diff --git a/mm/page_alloc.c b/mm/page_alloc.c
    index 9f8a97b..55d8810 100644
    --- a/mm/page_alloc.c
    +++ b/mm/page_alloc.c
    @@ -1261,7 +1261,6 @@ int split_free_page(struct page *page)
    return 0;

    /* Remove page from free list */
    - list_del(&page->lru);
    zone->free_area[order].nr_free--;
    rmv_page_order(page);
    __mod_zone_page_state(zone, NR_FREE_PAGES, -(1UL << order));



    \
     
     \ /
      Last update: 2011-05-06 17:05    [W:0.019 / U:61.112 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site