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 selftests/vm: gup_test: fix test flag
highmem.c mm: fix typos in comments
hmm.c mm: device exclusive memory access
huge_memory.c mm/rmap: fix comments left over from recent changes
hugetlb.c hugetlb: don't pass page cache pages to restore_reserve_on_error
hugetlb_cgroup.c hugetlb: make free_huge_page irq safe
hugetlb_vmemmap.c mm: hugetlb: introduce CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON
hugetlb_vmemmap.h mm: hugetlb: introduce nr_free_vmemmap_pages in the struct hstate
hwpoison-inject.c mm,hwpoison-inject: don't pin for hwpoison_filter
init-mm.c mm: add setup_initial_init_mm() helper
internal.h mmap: make mlock_future_check() global
interval_tree.c mm/interval_tree: add comments to improve code readability
io-mapping.c mm: add a io_mapping_map_user helper
ioremap.c mm/ioremap: fix iomap_max_page_shift
khugepaged.c mm, thp: relax the VM_DENYWRITE constraint on file-backed THPs
kmemleak.c kasan, kmemleak: reset tags when scanning block
ksm.c mm/ksm: use vma_lookup() in find_mergeable_vma()
list_lru.c mm: vmscan: consolidate shrinker_maps handling code
maccess.c uaccess: add force_uaccess_{begin,end} helpers
madvise.c mm/madvise: report SIGBUS as -EFAULT for MADV_POPULATE_(READ|WRITE)
mapping_dirty_helpers.c mm/mapping_dirty_helpers: remove double Note in kerneldoc
memblock.c memblock: make for_each_mem_range() traverse MEMBLOCK_HOTPLUG regions
memcontrol.c writeback: memcg: simplify cgroup_writeback_by_id
memfd.c Reimplement RLIMIT_MEMLOCK on top of ucounts
memory-failure.c mm/hwpoison: retry with shake_page() for unhandlable pages
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