]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: mm: Add compound tail page _mapcount when mapped
authorJovi Zhang <bookjovi@gmail.com>
Wed, 22 Aug 2012 02:34:08 +0000 (10:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:30:09 +0000 (10:30 -0700)
commit870fefcd916e9766ff3ac689aa87e9f3abbe9381
tree51ff1eb80eecc8be6c8f4e21b9573f30f9e7aad6
parent0ed92b21f3807633c70f7565f92b034ef8bf4b1c
MIPS: mm: Add compound tail page _mapcount when mapped

commit af89fa3986b9d034a286544ab1ed95096496a2f9 upstream.

See commit b6999b191 which did the same modification for x86's mm/gup,

Quote from commit b6999b191:
    "If compound pages are used and the page is a
    tail page, gup_huge_pmd() increases _mapcount to record tail page are
    mapped while gup_huge_pud does not do that."

[ralf@linux-mips.org: fixed rejects caused by the original patch getting
linewrapped.]

Signed-off-by: Jovi Zhang <boojovi@gmail.com>
Cc: Youquan Song <youquan.song@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Patchwork: https://patchwork.linux-mips.org/patch/4291/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/mm/gup.c