Skip to contentSkip to conversation

mm/page_alloc.c: no need del from lru

PATCH In review Figo.zhang 2 participants 2 messages May 6, 2011

Subsystems (2)
lore
Share & tools
lore

Figo.zhang

author
#0 lore raw

PATCH 1/1 mm/page_alloc.c: no need del from lru

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

---
mm/page_alloc.c | 1 -

 1 files changed, 0 insertions(+), 1 deletions(-)
mm/page_alloc.c +0 -1
index 9f8a97b..55d8810 100644
@@ -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));
#1 lore raw

Hello,

Quoted 2 lines · Figo.zhang

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

This is in the buddy freelist, see the other list_add in page_alloc.c. It's not the lru as in release_pages. I see little chance that if this was wrong it could go unnoticed so long without major mm corruption reported. Removing it also should result in heavy mm corruption.

Thanks,
Andrea

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>