summaryrefslogtreecommitdiff
path: root/Documentation/kref.txt
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <koct9i@gmail.com>2016-04-28 16:18:32 -0700
committerSasha Levin <sasha.levin@oracle.com>2016-05-17 14:51:57 -0400
commit5b065ca240124a69994aee170562217e2bb4c755 (patch)
treec56ea61059d1d591f7279dbbd467ea35d4c37643 /Documentation/kref.txt
parenta34c1651ea7a55f3c0e77c80c3b27605d5a7dfea (diff)
downloadlwn-5b065ca240124a69994aee170562217e2bb4c755.tar.gz
lwn-5b065ca240124a69994aee170562217e2bb4c755.zip
mm/huge_memory: replace VM_NO_THP VM_BUG_ON with actual VMA check
[ Upstream commit 3486b85a29c1741db99d0c522211c82d2b7a56d0 ] Khugepaged detects own VMAs by checking vm_file and vm_ops but this way it cannot distinguish private /dev/zero mappings from other special mappings like /dev/hpet which has no vm_ops and popultes PTEs in mmap. This fixes false-positive VM_BUG_ON and prevents installing THP where they are not expected. Link: http://lkml.kernel.org/r/CACT4Y+ZmuZMV5CjSFOeXviwQdABAgT7T+StKfTqan9YDtgEi5g@mail.gmail.com Fixes: 78f11a255749 ("mm: thp: fix /dev/zero MAP_PRIVATE and vm_flags cleanups") Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com> Reported-by: Dmitry Vyukov <dvyukov@google.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'Documentation/kref.txt')
0 files changed, 0 insertions, 0 deletions