summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-04-07 22:31:46 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-04-07 22:31:46 -0700
commit15b1d32152d8df09ddf22e044b494335af8fd7f1 (patch)
tree72532769c42fa97045e6386ff9fc90f62e1c8ee4 /include
parent050e6ae52a235525ce15452d66ee80d24e00be74 (diff)
[PATCH] Fix futexes in hugetlb pages
There is a stunning bug.
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index c6c2eef39d62..5f4bf646e187 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -231,8 +231,8 @@ static inline void get_page(struct page *page)
static inline void put_page(struct page *page)
{
if (PageCompound(page)) {
+ page = (struct page *)page->lru.next;
if (put_page_testzero(page)) {
- page = (struct page *)page->lru.next;
if (page->lru.prev) { /* destructor? */
(*(void (*)(struct page *))page->lru.prev)(page);
} else {