An error occurred while fetching folder content.
mm: gup: remove set but unused local variable major
Miaohe Lin authored
Patch series "Cleanups and fixup for gup".

This series contains cleanups to remove unneeded variable, useless BUG_ON
and use helper to improve readability.  Also we fix a potential pgmap
refcnt leak.  More details can be found in the respective changelogs.

This patch (of 5):

Since commit a2beb5f1 ("mm: clean up the last pieces of page fault
accountings"), the local variable major is unused.  Remove it.

Link: https://lkml.kernel.org/r/20210807093620.21347-1-linmiaohe@huawei.com
Link: https://lkml.kernel.org/r/20210807093620.21347-2-linmiaohe@huawei.com

Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Reviewed-by: default avatarJohn Hubbard <jhubbard@nvidia.com>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Reviewed-by: default avatarClaudio Imbrenda <imbrenda@linux.ibm.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.o...
8fed2f3c
Name Last commit Last update
..
kasan kasan: add memzero init for unaligned size at DEBUG
kfence kfence: skip all GFP_ZONEMASK allocations
Kconfig mm: introduce memfd_secret system call to create "secret" memory areas
Kconfig.debug mm, page_poison: remove CONFIG_PAGE_POISONING_ZERO
Makefile mm: introduce memfd_secret system call to create "secret" memory areas
backing-dev.c writeback: fix bandwidth estimate for spiky workload
balloon_compaction.c mm: fix typos in comments
bootmem_info.c mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c
cleancache.c Merge tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
cma.c mm: use proper type for cma_[alloc|release]
cma.h mm: cma: support sysfs
cma_debug.c mm/cma: change cma mutex to irq safe spinlock
cma_sysfs.c mm: cma: support sysfs
compaction.c Merge branch 'akpm' (patches from Andrew)
debug.c mm/debug: factor PagePoisoned out of __dump_page
debug_page_ref.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license
debug_vm_pgtable.c mm/debug_vm_pgtable: fix corrupted page flag
dmapool.c mm/dmapool: use DEVICE_ATTR_RO macro
early_ioremap.c mm/early_ioremap.c: use __func__ instead of function name
fadvise.c mm, fadvise: improve the expensive remote LRU cache draining after FADV_DONTNEED
failslab.c mm/failslab.c: by default, do not fail allocations with direct reclaim only
filemap.c mm: remove irqsave/restore locking from contexts with irqs enabled
frontswap.c mm/mempool: minor coding style tweaks
gup.c mm: gup: remove set but unused local variable major
gup_test.c selftests/vm: gup_test: test faulting in kernel, and verify pinnable pages
gup_test.h
highmem.c
hmm.c
huge_memory.c
hugetlb.c
hugetlb_cgroup.c
hugetlb_vmemmap.c
hugetlb_vmemmap.h
hwpoison-inject.c
init-mm.c
internal.h
interval_tree.c
io-mapping.c
ioremap.c
khugepaged.c
kmemleak.c
ksm.c
list_lru.c
maccess.c
madvise.c
mapping_dirty_helpers.c
memblock.c
memcontrol.c
memfd.c
memory-failure.c
memory.c
memory_hotplug.c
mempolicy.c
mempool.c
memremap.c
memtest.c
migrate.c
mincore.c
mlock.c
mm_init.c
mmap.c
mmap_lock.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_reporting.c
page_reporting.h
page_vma_mapped.c
pagewalk.c
percpu-internal.h
percpu-km.c
percpu-stats.c
percpu-vm.c
percpu.c
pgalloc-track.h
pgtable-generic.c
process_vm_access.c
ptdump.c
readahead.c
rmap.c
rodata_test.c
secretmem.c
shmem.c
shuffle.c
shuffle.h
slab.c