diff options
Diffstat (limited to 'kernel/futex.c')
-rw-r--r-- | kernel/futex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index b26dcfc02c94..49dacfb45745 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <linux/nsproxy.h> | 61 | #include <linux/nsproxy.h> |
62 | #include <linux/ptrace.h> | 62 | #include <linux/ptrace.h> |
63 | #include <linux/sched/rt.h> | 63 | #include <linux/sched/rt.h> |
64 | #include <linux/hugetlb.h> | ||
64 | 65 | ||
65 | #include <asm/futex.h> | 66 | #include <asm/futex.h> |
66 | 67 | ||
@@ -365,7 +366,7 @@ again: | |||
365 | } else { | 366 | } else { |
366 | key->both.offset |= FUT_OFF_INODE; /* inode-based key */ | 367 | key->both.offset |= FUT_OFF_INODE; /* inode-based key */ |
367 | key->shared.inode = page_head->mapping->host; | 368 | key->shared.inode = page_head->mapping->host; |
368 | key->shared.pgoff = page_head->index; | 369 | key->shared.pgoff = basepage_index(page); |
369 | } | 370 | } |
370 | 371 | ||
371 | get_futex_key_refs(key); | 372 | get_futex_key_refs(key); |