public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hugetlb: use set_compound_page_dtor
@ 2007-07-14  1:46 Akinobu Mita
  2007-07-16 15:48 ` Adam Litke
  0 siblings, 1 reply; 2+ messages in thread
From: Akinobu Mita @ 2007-07-14  1:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: William Irwin

Use appropriate accessor function to set compound page destructor
function.

Cc:  William Irwin <wli@holomorphy.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>

---
 mm/hugetlb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: 2.6-git/mm/hugetlb.c
===================================================================
--- 2.6-git.orig/mm/hugetlb.c
+++ 2.6-git/mm/hugetlb.c
@@ -196,7 +196,7 @@ static void update_and_free_page(struct 
 				1 << PG_dirty | 1 << PG_active | 1 << PG_reserved |
 				1 << PG_private | 1<< PG_writeback);
 	}
-	page[1].lru.next = NULL;
+	set_compound_page_dtor(page, NULL);
 	set_page_refcounted(page);
 	__free_pages(page, HUGETLB_PAGE_ORDER);
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] hugetlb: use set_compound_page_dtor
  2007-07-14  1:46 [PATCH] hugetlb: use set_compound_page_dtor Akinobu Mita
@ 2007-07-16 15:48 ` Adam Litke
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Litke @ 2007-07-16 15:48 UTC (permalink / raw)
  To: Akinobu Mita, linux-kernel, William Irwin

On 7/13/07, Akinobu Mita <akinobu.mita@gmail.com> wrote:
> Use appropriate accessor function to set compound page destructor
> function.
>
> Cc:  William Irwin <wli@holomorphy.com>
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>

Acked-by: Adam Litke <agl@us.ibm.com>

--
Adam Litke ( agl at us.ibm.com )
IBM Linux Technology Center

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-16 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-14  1:46 [PATCH] hugetlb: use set_compound_page_dtor Akinobu Mita
2007-07-16 15:48 ` Adam Litke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox