summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2017-02-22 15:41:42 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-22 16:41:27 -0800
commitf8005451d75f4879a93b12c14b162dd60f81ec56 (patch)
tree59ea91b6fd31565cdcd424249172bfea1852c0d0 /tools/perf/scripts/python/bin/stackcollapse-record
parent1663f26df3df7df3720306ca67f5ea8296d68fa1 (diff)
downloadkernel-f8005451d75f4879a93b12c14b162dd60f81ec56.tar.gz
tmpfs: change shmem_mapping() to test shmem_aops
Callers of shmem_mapping() are interested in whether the mapping is swap backed - except for uprobes, which is interested in whether it should use shmem_read_mapping_page(). All these callers are better served by a shmem_mapping() which checks for shmem_aops, than the current version which goes through several indirections to find where the inode lives - and has the surprising effect that a private mmap of /dev/zero satisfies both vma_is_anonymous() and shmem_mapping(), when that device node is on devtmpfs. I don't think anything in the tree suffers from that surprise, but it caught me out, and is better fixed. Link: http://lkml.kernel.org/r/alpine.LSU.2.11.1612052148530.13021@eggly.anvils Signed-off-by: Hugh Dickins <hughd@google.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
3xxx: fix allmodconfig panic in pci driverXia Kaixu 2014-06-17ARM: use menuconfig for sub-arch menusRob Herring 2014-06-05Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into nextLinus Torvalds 2014-05-30ARM: l2c: cns3xxx: remove cache size overrideRussell King 2014-05-30ARM: l2c: fix register namingRussell King 2014-05-29ARM: kconfig: allow PCI support to be selected with ARCH_MULTIPLATFORMWill Deacon 2014-04-05Merge tag 'cleanup-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...Linus Torvalds 2014-04-05Merge tag 'fixes-non-critical-3.15' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds 2014-03-17CNS3xxx: Fix PCIe early iotable_init().Krzysztof Hałasa 2014-03-17CNS3xxx: Fix a WARN() related to IRQ allocation.Krzysztof Hałasa 2014-03-12ARM: 7997/1: cns3xxx: remove deprecated IRQF_DISABLEDMichael Opdenacker 2014-02-19ARM: cns3xxx: enable V6K instead of plain V6Rob Herring 2014-02-19ARM: Select V6K instead of V6 by default for multi-platformRob Herring 2014-02-19ARM: select MIGHT_HAVE_CACHE_L2X0 for V6 and V7 multi-platformRob Herring