diff options
author | Li Hong <lihong.hi@gmail.com> | 2010-03-05 16:41:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-06 14:26:25 -0500 |
commit | fc91668eaf9e7ba61e867fc2218b7e9fb67faa4f (patch) | |
tree | 08d443d76255e8d60ae6ba07d52cdc295172ded8 /mm/swap.c | |
parent | c475dab63ae798d81fb597a6a1859986b296d9d0 (diff) |
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.
[akpm@linux-foundation.org: fix build]
Signed-off-by: Li Hong <lihong.hi@gmail.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Rik van Riel <riel@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Larry Woodman <lwoodman@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Li Ming Chun <macli@brc.ubc.ca>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Americo Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,7 +55,7 @@ static void __page_cache_release(struct page *page) | |||
55 | del_page_from_lru(zone, page); | 55 | del_page_from_lru(zone, page); |
56 | spin_unlock_irqrestore(&zone->lru_lock, flags); | 56 | spin_unlock_irqrestore(&zone->lru_lock, flags); |
57 | } | 57 | } |
58 | free_hot_page(page); | 58 | free_hot_cold_page(page, 0); |
59 | } | 59 | } |
60 | 60 | ||
61 | static void put_compound_page(struct page *page) | 61 | static void put_compound_page(struct page *page) |