From af767cbdd78f293485c294113885d95e7f1da123 Mon Sep 17 00:00:00 2001 From: Adam Litke Date: Tue, 16 Oct 2007 01:26:25 -0700 Subject: [PATCH] hugetlb: fix dynamic pool resize failure case When gather_surplus_pages() fails to allocate enough huge pages to satisfy the requested reservation, it frees what it did allocate back to the buddy allocator. put_page() should be called instead of update_and_free_page() to ensure that pool counters are updated as appropriate and the page's refcount is decremented. Signed-off-by: Adam Litke Acked-by: Dave Hansen Cc: David Gibson Cc: William Lee Irwin III Cc: Badari Pulavarty Cc: Ken Chen Cc: Lee Schermerhorn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed