]> git.baikalelectronics.ru Git - kernel.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)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 27 Aug 2012 14:10:21 +0000 (16:10 +0200)
commit2bbd57fe6fd9fbe4bb4b9f87c0d5b18dd36f7580
tree5fa5bc0a8bcf79625bc36488663c9092fcacbe0c
parent17136f0bce72cff144660744750d546c1a3800aa
MIPS: mm: Add compound tail page _mapcount when mapped

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

Quote from commit 57d840417:
    "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>
Cc: <stable@vger.kernel.org>
Patchwork: https://patchwork.linux-mips.org/patch/4291/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/gup.c