An error occurred while fetching folder content.
mm: add follow_pte_pmd()
Ross Zwisler authored
commit 09796395 upstream.

Patch series "Write protect DAX PMDs in *sync path".

Currently dax_mapping_entry_mkclean() fails to clean and write protect
the pmd_t of a DAX PMD entry during an *sync operation.  This can result
in data loss, as detailed in patch 2.

This series is based on Dan's "libnvdimm-pending" branch, which is the
current home for Jan's "dax: Page invalidation fixes" series.  You can
find a working tree here:

  https://git.kernel.org/cgit/linux/kernel/git/zwisler/linux.git/log/?h=dax_pmd_clean

This patch (of 2):

Similar to follow_pte(), follow_pte_pmd() allows either a PTE leaf or a
huge page PMD leaf to be found and returned.

Link: http://lkml.kernel.org/r/1482272586-21177-2-git-send-email-ross.zwisler@linux.intel.com

Signed-off-by: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
Suggested-by: default avatarDave Hansen <dave.hansen@intel.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
[bwh: Backported to 4.9: adjust context]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
0dd4d649
Name Last commit Last update
..
kasan kasan: avoid -Wmaybe-uninitialized warning
Kconfig mm: don't allow deferred pages with NEED_PER_CPU_KM
Kconfig.debug PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO
Makefile Disable the __builtin_return_address() warning globally after all
backing-dev.c mm: bdi: initialize bdi_min_ratio when bdi is unregistered
balloon_compaction.c mm: balloon: use general non-lru movable page feature
bootmem.c mm: kmemleak: avoid using __va() on addresses that don't have a lowmem mapping
cleancache.c cleancache: constify cleancache_ops structure
cma.c mm/cma.c: fail if fixed declaration can't be honored
cma.h mm: cma: mark cma_bitmap_maxno() inline in header
cma_debug.c mm/cma_debug.c: fix the break condition in cma_maxchunk_get()
compaction.c mm, compaction: fix NR_ISOLATED_* stats for pfn based migration
debug.c mm: get rid of vmacache_flush_all() entirely
debug_page_ref.c mm/page_ref: add tracepoint to track down page reference manipulation
dmapool.c mm: convert printk(KERN_<LEVEL> to pr_<level>
early_ioremap.c mm/early_ioremap: Fix boot hang with earlyprintk=efi,keep
fadvise.c mm/fadvise.c: fix signed overflow UBSAN complaint
failslab.c mm: fault-inject take over bootstrap kmem_cache check
filemap.c mm/filemap.c: clear page error before actual read
frame_vector.c mm/frame_vector.c: release a semaphore in 'get_vaddr_frames()'
frontswap.c mm, frontswap: convert frontswap_enabled to static key
gup.c gup: document and work around "COW can break either way" issue
highmem.c mm/highmem: make nr_free_highpages() handles all highmem zones by itself
huge_memory.c gup: document and work around "COW can break either way" issue
hugetlb.c hugetlb: take PMD sharing into account when flushing tlb/caches
hugetlb_cgroup.c
hwpoison-inject.c
init-mm.c
internal.h
interval_tree.c
khugepaged.c
kmemcheck.c
kmemleak-test.c
kmemleak.c
ksm.c
list_lru.c
maccess.c
madvise.c
memblock.c
memcontrol.c
memory-failure.c
memory.c
memory_hotplug.c
mempolicy.c
mempool.c
memtest.c
migrate.c
mincore.c
mlock.c
mm_init.c
mmap.c
mmu_context.c
mmu_notifier.c
mmzone.c
mprotect.c
mremap.c
msync.c
nobootmem.c
nommu.c
oom_kill.c
page-writeback.c
page_alloc.c
page_counter.c
page_ext.c
page_idle.c
page_io.c
page_isolation.c
page_owner.c
page_poison.c
pagewalk.c
percpu-km.c
percpu-vm.c
percpu.c
pgtable-generic.c
process_vm_access.c
quicklist.c
readahead.c
rmap.c
shmem.c
slab.c
slab.h
slab_common.c
slob.c
slub.c
sparse-vmemmap.c
sparse.c
swap.c
swap_cgroup.c
swap_state.c
swapfile.c
truncate.c
usercopy.c
userfaultfd.c
util.c
vmacache.c
vmalloc.c
vmpressure.c
vmscan.c
vmstat.c
workingset.c