diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2014-04-14 11:16:27 +0530 |
---|---|---|
committer | Wang Sen <wangsen@linux.vnet.ibm.com> | 2014-04-14 17:02:54 +0800 |
commit | aaed5aa6b25ab969dac816449adeaba07d92882f (patch) | |
tree | b5cfa8c4f8f5d2d4a4c02550bf09b33864063117 | |
parent | 716a0e89e5d7f1bd9398bb96b603e15a9cffd2f8 (diff) | |
download | powerkvm-aaed5aa6b25ab969dac816449adeaba07d92882f.tar.gz |
powerpc/mm: Don't update page->_mapcount for hugetlb tail pages
The changes to increment _mapcount was added w.r.t THP change
3526741f0964c88bc2ce511e1078359052bf225b. Later this was fixed
to to handle the hugetlb case in 44518d2b32646e37b4b7a0813bbbe98dc21c7f8f
Instead of backporting 44518, we can remove the _mapcount update since
we don't support THP for kvm host yet.
Fixes: bz# 108558
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 77fdd2cef33b5a..4d10493afffc0a 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c @@ -809,16 +809,6 @@ int gup_hugepte(pte_t *ptep, unsigned long sz, unsigned long addr, return 0; } - /* - * Any tail page need their mapcount reference taken before we - * return. - */ - while (refs--) { - if (PageTail(tail)) - get_huge_page_tail(tail); - tail++; - } - return 1; } |