An error occurred while fetching folder content.
mm/khugepaged: fix the xas_create_range() error path
Hugh Dickins authored
collapse_shmem()'s xas_nomem() is very unlikely to fail, but it is
rightly given a failure path, so move the whole xas_create_range() block
up before __SetPageLocked(new_page): so that it does not need to
remember to unlock_page(new_page).

Add the missing mem_cgroup_cancel_charge(), and set (currently unused)
result to SCAN_FAIL rather than SCAN_SUCCEED.

Link: http://lkml.kernel.org/r/alpine.LSU.2.11.1811261531200.2275@eggly.anvils
Fixes: 77da9389

 ("mm: Convert collapse_shmem to XArray")
Signed-off-by: default avatarHugh Dickins <hughd@kernel.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
95feeabb
Name Last commit Last update
..
kasan mm: remove include/linux/bootmem.h
Kconfig mm: remove CONFIG_HAVE_MEMBLOCK
Kconfig.debug mm: clarify CONFIG_PAGE_POISONING and usage
Makefile mm: remove nobootmem
backing-dev.c blkcg: delay blkg destruction until after writeback has finished
balloon_compaction.c virtio_balloon: fix deadlock on OOM
cleancache.c mm: use octal not symbolic permissions
cma.c mm/cma: remove unsupported gfp_mask parameter from cma_alloc()
cma.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license
cma_debug.c mm/cma: remove unsupported gfp_mask parameter from cma_alloc()
compaction.c psi: pressure stall information for CPU, memory, and IO
debug.c mm: provide kernel parameter to allow disabling page init poisoning
debug_page_ref.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license
dmapool.c mm: use octal not symbolic permissions
early_ioremap.c mm/early_ioremap: Fix boot hang with earlyprintk=efi,keep
fadvise.c vfs: implement readahead(2) using POSIX_FADV_WILLNEED
failslab.c mm: use octal not symbolic permissions
filemap.c Merge tag 'xfs-4.20-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
frame_vector.c mm/frame_vector.c: release a semaphore in 'get_vaddr_frames()'
frontswap.c mm: use octal not symbolic permissions
gup.c mm/gup: finish consolidating error handling
gup_benchmark.c mm/gup_benchmark.c: prevent integer overflow in ioctl
highmem.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license
hmm.c mm/hmm: invalidate device page table at start of invalidation
huge_memory.c mm/huge_memory: fix lockdep complaint on 32-bit i_size_read()
hugetlb.c
hugetlb_cgroup.c
hwpoison-inject.c
init-mm.c
internal.h
interval_tree.c
khugepaged.c
kmemleak-test.c
kmemleak.c
ksm.c
list_lru.c
maccess.c
madvise.c
memblock.c
memcontrol.c
memfd.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_gather.c
mmu_notifier.c
mmzone.c
mprotect.c
mremap.c
msync.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
page_vma_mapped.c
pagewalk.c
percpu-internal.h
percpu-km.c
percpu-stats.c
percpu-vm.c
percpu.c
pgtable-generic.c
process_vm_access.c
quicklist.c
readahead.c
rmap.c
rodata_test.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_slots.c
swap_state.c
swapfile.c
truncate.c
usercopy.c
userfaultfd.c
util.c