mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mm: remove free_hot_page()
free_hot_page() is just a wrapper around free_hot_cold_page() with parameter 'cold = 0'. After adding a clear comment for free_hot_cold_page(), it is reasonable to remove a level of call. [[email protected]: fix build] Signed-off-by: Li Hong <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Larry Woodman <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Li Ming Chun <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Americo Wang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c475dab63a
commit
fc91668eaf
3 changed files with 5 additions and 9 deletions
|
|
@ -55,7 +55,7 @@ static void __page_cache_release(struct page *page)
|
|||
del_page_from_lru(zone, page);
|
||||
spin_unlock_irqrestore(&zone->lru_lock, flags);
|
||||
}
|
||||
free_hot_page(page);
|
||||
free_hot_cold_page(page, 0);
|
||||
}
|
||||
|
||||
static void put_compound_page(struct page *page)
|
||||
|
|
|
|||
Loading…
Reference in a new issue