aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
AgeCommit message (Expand)AuthorFilesLines
6 daysMerge tag 'mm-stable-2025-12-03-21-26' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-144/+189
9 daysMerge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-16/+46
2025-11-24mm: userfaultfd: add pgtable_supports_uffd_wp()Chunyan Zhang1-2/+4
2025-11-24mm: replace remaining pte_to_swp_entry() with softleaf_from_pte()Lorenzo Stoakes1-8/+8
2025-11-24mm: eliminate further swapops predicatesLorenzo Stoakes1-1/+2
2025-11-24mm: remove non_swap_entry() and use softleaf helpers insteadLorenzo Stoakes1-18/+18
2025-11-24mm: introduce pmd_is_huge() and use where appropriateLorenzo Stoakes1-2/+2
2025-11-24mm: replace pmd_to_swp_entry() with softleaf_from_pmd()Lorenzo Stoakes1-2/+2
2025-11-24mm: avoid unnecessary use of is_swap_pmd()Lorenzo Stoakes1-22/+28
2025-11-24mm: introduce leaf entry type and use to simplify leaf entry logicLorenzo Stoakes1-20/+21
2025-11-24mm/memory/fault: add THP fault handling for zone device private pagesBalbir Singh1-2/+3
2025-11-20mm: introduce copy-on-fork VMAs and make VM_MAYBE_GUARD oneLorenzo Stoakes1-14/+4
2025-11-20mm: introduce VM_MAYBE_GUARD and make visible in /proc/$pid/smapsLorenzo Stoakes1-0/+4
2025-11-20mm: kill mm_wr_locked from unmap_vmas() and unmap_single_vma()Kefeng Wang1-8/+4
2025-11-19mm: add spurious fault fixing support for huge pmdHuang Ying1-16/+46
2025-11-16treewide: include linux/pgalloc.h instead of asm/pgalloc.hHarry Yoo1-2/+2
2025-11-16mm: add remap_pfn_range_prepare(), remap_pfn_range_complete()Lorenzo Stoakes1-44/+88
2025-11-16mm: replace READ_ONCE() with standard page table accessorsAnshuman Khandual1-2/+2
2025-11-16mm: fix some typos in mm modulejianyun.gao1-2/+2
2025-11-09mm/memory: do not populate page table entries beyond i_sizeKiryl Shutsemau1-1/+19
2025-09-28mm/fault: try to map the entire file folio in finish_fault()Kiryl Shutsemau1-7/+2
2025-09-21mm: remove redundant test in validate_page_before_insert()Matthew Wilcox (Oracle)1-2/+1
2025-09-21mm, swap: cleanup swap cache API and add kerneldocKairui Song1-1/+1
2025-09-21mm, swap: always lock and check the swap cache folio before useKairui Song1-2/+1
2025-09-21mm, swap: check page poison flag after locking itKairui Song1-11/+11
2025-09-21mm, swap: use unified helper for swap cache look upKairui Song1-2/+4
2025-09-13mm/huge_memory: respect MADV_COLLAPSE with PR_THP_DISABLE_EXCEPT_ADVISEDDavid Hildenbrand1-2/+4
2025-09-13mm/huge_memory: convert "tva_flags" to "enum tva_type"David Hildenbrand1-8/+6
2025-09-13mm: rename vm_ops->find_special_page() to vm_ops->find_normal_page()David Hildenbrand1-2/+10
2025-09-13mm: introduce and use vm_normal_page_pud()David Hildenbrand1-0/+19
2025-09-13mm/memory: factor out common code from vm_normal_page_*()David Hildenbrand1-77/+109
2025-09-13mm/memory: convert print_bad_pte() to print_bad_page_map()David Hildenbrand1-20/+84
2025-09-13mm/huge_memory: mark PMD mappings of the huge zero folio specialDavid Hildenbrand1-5/+10
2025-07-31Merge tag 'mm-stable-2025-07-30-15-25' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-92/+61
2025-07-29Merge tag 'sysctl-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-0/+18
2025-07-24mm/memory: introduce is_huge_zero_pfn() and use it in vm_normal_page_pmd()David Hildenbrand1-1/+1
2025-07-24mm: remove call to hugetlb_free_pgd_range()Anthony Yznaga1-24/+18
2025-07-23mm: move randomize_va_space into memory.cJoel Granados1-0/+18
2025-07-19mm/memory.c: use folios in __access_remote_vm()Vishal Moola (Oracle)1-3/+5
2025-07-19mm/memory.c: use folios in __copy_remote_vm_str()Vishal Moola (Oracle)1-3/+5
2025-07-19mm: remove boolean output parameters from folio_pte_batch_ext()David Hildenbrand1-6/+2
2025-07-19mm: split folio_pte_batch() into folio_pte_batch() and folio_pte_batch_flags()David Hildenbrand1-5/+3
2025-07-19mm: convert FPB_IGNORE_* into FPB_RESPECT_*David Hildenbrand1-6/+5
2025-07-19mm: fault in complete folios instead of individual pages for tmpfsBaolin Wang1-2/+2
2025-07-09mm: remove callers of pfn_t functionalityAlistair Popple1-16/+15
2025-07-09mm: remove PFN_DEV, PFN_MAP, PFN_SPECIAL, PFN_SG_CHAIN and PFN_SG_LASTAlistair Popple1-2/+0
2025-07-09mm: remove redundant pXd_devmap callsAlistair Popple1-9/+6
2025-07-09mm: convert vmf_insert_mixed() from using pte_devmap to pte_specialAlistair Popple1-18/+2
2025-07-09mm: remove remaining uses of PFN_DEVAlistair Popple1-1/+1
2025-07-09mm: update core kernel code to use vm_flags_t consistentlyLorenzo Stoakes1-2/+2
2025-06-19mm/shmem, swap: fix softlockup with mTHP swapinKairui Song1-20/+0
2025-05-31mmu_gather: move tlb flush for VM_PFNMAP/VM_MIXEDMAP vmas into free_pgtables()Roman Gushchin1-0/+2
2025-05-31mm: rename page->index to page->__folio_indexMatthew Wilcox (Oracle)1-2/+2
2025-05-22mm: convert do_set_pmd() to take a folioBaolin Wang1-6/+5
2025-05-22mm: convert VM_PFNMAP tracking to pfnmap_track() + pfnmap_untrack()David Hildenbrand1-16/+66
2025-05-22mm: convert track_pfn_insert() to pfnmap_setup_cachemode*()David Hildenbrand1-2/+2
2025-05-13mm: introduce new .mmap_prepare() file callbackLorenzo Stoakes1-1/+2
2025-05-12mm/rmap: inline folio_test_large_maybe_mapped_shared() into callersLance Yang1-2/+2
2025-05-12mm/huge_memory: remove useless folio pointers passingGavin Guo1-2/+2
2025-05-11mm: move mmap/vma locking logic into specific filesLorenzo Stoakes1-252/+0
2025-05-11mm/madvise: batch tlb flushes for MADV_DONTNEED[_LOCKED]SeongJae Park1-2/+2
2025-05-11mm/memory: split non-tlb flushing part from zap_page_range_single()SeongJae Park1-10/+39
2025-05-11mm: add kernel-doc comment for free_pgd_range()SoumishDas1-2/+11
2025-05-11mm: add folio_mk_pmd()Matthew Wilcox (Oracle)1-1/+1
2025-05-11mm: add folio_mk_pte()Matthew Wilcox (Oracle)1-3/+3
2025-05-11mm: set the pte dirty if the folio is already dirtyMatthew Wilcox (Oracle)1-0/+2
2025-05-11mm/memory: fix mapcount / refcount sanity check for mTHP reuseKairui Song1-1/+1
2025-04-17mm/memory: move sanity checks in do_wp_page() after mapcount vs. refcount sta...David Hildenbrand1-2/+2
2025-04-11mm: fix apply_to_existing_page_range()Kirill A. Shutemov1-2/+2
2025-04-11mm: (un)track_pfn_copy() fix + doc improvementsDavid Hildenbrand1-1/+1
2025-04-01Merge tag 'vfio-v6.15-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds1-0/+1
2025-04-01Merge tag 'mm-stable-2025-03-30-16-52' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-94/+286
2025-03-30Merge tag 'x86-urgent-2025-03-28' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-7/+4
2025-03-30Merge tag 'bpf-next-6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/bp...Linus Torvalds1-0/+118
2025-03-28Merge tag 'drm-next-2025-03-28' of https://gitlab.freedesktop.org/drm/kernelLinus Torvalds1-4/+9
2025-03-25x86/mm/pat: Fix VM_PAT handling when fork() fails in copy_page_range()David Hildenbrand1-7/+4
2025-03-24Merge tag 'locking-core-2025-03-22' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-2/+0
2025-03-17arch, mm: set high_memory in free_area_init()Mike Rapoport (Microsoft)1-8/+0
2025-03-17arch, mm: set max_mapnr when allocating memory map for FLATMEMMike Rapoport (Microsoft)1-8/+0
2025-03-17mm: convert folio_likely_mapped_shared() to folio_maybe_mapped_shared()David Hildenbrand1-1/+1
2025-03-17mm: Copy-on-Write (COW) reuse support for PTE-mapped THPDavid Hildenbrand1-8/+75
2025-03-17mm/rmap: pass dst_vma to folio_dup_file_rmap_pte() and friendsDavid Hildenbrand1-5/+5
2025-03-17fs/dax: properly refcount fs dax pagesAlistair Popple1-2/+4
2025-03-17mm/memory: add vmf_insert_page_mkwrite()Alistair Popple1-0/+20
2025-03-17mm/memory: enhance insert_page_into_pte_locked() to create writable mappingsAlistair Popple1-9/+30
2025-03-17mm: allow compound zone device pagesAlistair Popple1-1/+3
2025-03-17mm/mmu_notifier: use MMU_NOTIFY_CLEAR in remove_device_exclusive_entry()David Hildenbrand1-1/+1
2025-03-17mm/memory: document restore_exclusive_pte()David Hildenbrand1-0/+26
2025-03-17mm/memory: pass folio and pte to restore_exclusive_pte()David Hildenbrand1-15/+14
2025-03-17mm/memory: remove PageAnonExclusive sanity-check in restore_exclusive_pte()David Hildenbrand1-3/+0
2025-03-16mm/ioremap: pass pgprot_t to ioremap_prot() instead of unsigned longRyan Roberts1-3/+3
2025-03-16mm: prepare lock_vma_under_rcu() for vma reuse possibilitySuren Baghdasaryan1-3/+4
2025-03-16mm: replace vm_lock and detached flag with a reference countSuren Baghdasaryan1-10/+80
2025-03-16mm: uninline the main body of vma_start_write()Suren Baghdasaryan1-0/+14
2025-03-16mm: mark vma as detached until it's added into vma treeSuren Baghdasaryan1-1/+1
2025-03-16mm/rmap: keep mapcount untouched for device-exclusive entriesDavid Hildenbrand1-16/+1
2025-03-16mm/memory: detect writability in restore_exclusive_pte() through can_change_p...David Hildenbrand1-4/+7
2025-03-16mm: memcontrol: move memsw charge callbacks to v1Johannes Weiner1-1/+1
2025-03-13Revert "mm: don't allow huge faults for files with pre content watches"Amir Goldstein1-19/+0
2025-03-12Backmerge tag 'v6.14-rc6' into drm-nextDave Airlie1-7/+14
2025-03-08Merge branch 'locking/urgent' into locking/core, to pick up locking fixesIngo Molnar1-3/+14
2025-03-06mm/migrate: Trylock device page in do_swap_pageMatthew Brost1-4/+9
2025-03-05mm: fix finish_fault() handling for large foliosBrian Geffon1-5/+10
2025-03-05mm: don't skip arch_sync_kernel_mappings() in error pathsRyan Roberts1-2/+4
2025-03-01lockdep/mm: Fix might_fault() lockdep check of current->mm->mmap_lockPeter Zijlstra1-2/+0
2025-02-27mm: Provide address mask in struct follow_pfnmap_argsAlex Williamson1-0/+1
2025-02-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf bpf-6.14-rc4Alexei Starovoitov1-3/+14
2025-02-19mm: Add copy_remote_vm_str() for readng C strings from remote VMJordan Rome1-0/+118
2025-02-17mm: pgtable: fix incorrect reclaim of non-empty PTE pagesQi Zheng1-3/+14
2025-01-26Merge tag 'mm-stable-2025-01-26-14-59' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-98/+169
2025-01-25mm: pgtable: introduce pagetable_dtor()Qi Zheng1-1/+2
2025-01-25mm: remove unnecessary calls to lru_add_drainRik van Riel1-1/+0
2025-01-25mm: unexport apply_to_existing_page_rangeChristoph Hellwig1-1/+0
2025-01-25mm: fix outdated incorrect code comments for handle_mm_fault()Jinliang Zheng1-1/+2
2025-01-23Merge tag 'fsnotify_hsm_for_v6.14-rc1' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-0/+19
2025-01-13mm: add per-order mTHP swap-in fallback/fallback_charge countersWenchao Hao1-0/+2
2025-01-13mm: pgtable: reclaim empty PTE page in madvise(MADV_DONTNEED)Qi Zheng1-2/+19
2025-01-13mm: make zap_pte_range() handle full within-PMD rangeQi Zheng1-0/+8
2025-01-13mm: do_zap_pte_range: return any_skipped information to the callerQi Zheng1-15/+21
2025-01-13mm: zap_install_uffd_wp_if_needed: return whether uffd-wp pte has been re-ins...Qi Zheng1-4/+12
2025-01-13mm: skip over all consecutive none ptes in do_zap_pte_range()Qi Zheng1-7/+20
2025-01-13mm: introduce do_zap_pte_range()Qi Zheng1-19/+26
2025-01-13mm: introduce zap_nonpresent_ptes()Qi Zheng1-63/+73
2025-01-13mm/memory: fix a comment typo in lock_mm_and_find_vma()Chin Yik Ming1-1/+1
2025-01-13mm: migrate: remove unused argument vma from migrate_misplaced_folio()Donet Tom1-1/+1
2024-12-18mm: use clear_user_(high)page() for arch with special user folio handlingZi Yan1-5/+5
2024-12-18mm: use aligned address in copy_user_gigantic_page()Kefeng Wang1-2/+3
2024-12-18mm: use aligned address in clear_gigantic_page()Kefeng Wang1-1/+2
2024-12-10mm: don't allow huge faults for files with pre content watchesJosef Bacik1-0/+19
2024-11-11mm: add PTE_MARKER_GUARD PTE markerLorenzo Stoakes1-3/+15
2024-11-06mm/memory.c: simplify pfnmap_lockdep_assertManas1-1/+1
2024-11-06mm: avoid zeroing user movable page twice with init_on_alloc=1Zi Yan1-1/+9
2024-11-06mm: remove unused hugepage for vma_alloc_folio()Kefeng Wang1-6/+4
2024-11-06mm/memory.c: remove stray newline at top of fileAndrew Morton1-1/+0
2024-11-05mm: copy_pte_range() use pte_offset_map_rw_nolock()Qi Zheng1-1/+10
2024-11-05mm: handle_pte_fault() use pte_offset_map_rw_nolock()Qi Zheng1-2/+12
2024-11-05mm: move mm flags to mm_types.hNanyong Sun1-1/+0
2024-10-28mm: avoid unconditional one-tick sleep when swapcache_prepare failsBarry Song1-2/+13
2024-10-18mm: fix follow_pfnmap API lockdep assertLinus Torvalds1-1/+2
2024-10-17mm: don't install PMD mappings when THPs are disabled by the hw/process/vmaDavid Hildenbrand1-0/+9
2024-10-17mm: remove unused stub for can_swapin_thp()Andy Shevchenko1-5/+0
2024-09-21Merge tag 'mm-stable-2024-09-20-02-31' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-132/+430
2024-09-19Merge tag 'mm-hotfixes-stable-2024-09-19-00-31' of git://git.kernel.org/pub/s...Linus Torvalds1-5/+3
2024-09-17mm: support large folios swap-in for sync io devicesChuanhua Han1-27/+234
2024-09-17mm: add nr argument in mem_cgroup_swapin_uncharge_swap() helper to support la...Barry Song1-1/+1
2024-09-17mm: support poison recovery from copy_present_page()Kefeng Wang1-3/+7
2024-09-17mm: support poison recovery from do_cow_fault()Kefeng Wang1-1/+5
2024-09-17mm: remove follow_pte()Peter Xu1-73/+0
2024-09-17mm/access_process_vm: use the new follow_pfnmap APIPeter Xu1-14/+14
2024-09-17mm: new follow_pfnmap APIPeter Xu1-0/+150
2024-09-17mm/pagewalk: check pfnmap for folio_walk_start()Peter Xu1-5/+4
2024-09-17mm: change vmf_anon_prepare() to __vmf_anon_prepare()Vishal Moola (Oracle)1-5/+3
2024-09-12mm: avoid leaving partial pfn mappings around in error caseLinus Torvalds1-5/+22
2024-09-09mm: cleanup count_mthp_stat() definitionRyan Roberts1-2/+0
2024-09-03mm,memcg: provide per-cgroup counters for NUMA balancing operationsKaiyang Zhao1-0/+3
2024-09-01mm/migrate: move common code to numa_migrate_check (was numa_migrate_prep)Zi Yan1-30/+33
2024-09-01mm: return the folio from swapin_readaheadMatthew Wilcox (Oracle)1-4/+2
2024-09-01mm: fix (harmless) type confusion in lock_vma_under_rcu()Jann Horn1-4/+10
2024-09-01mm: provide vm_normal_(page|folio)_pmd() with CONFIG_PGTABLE_HAS_HUGE_LEAVESDavid Hildenbrand1-1/+1
2024-09-01mm: swap: add nr argument in swapcache_prepare and swapcache_clear to support...Barry Song1-3/+3
2024-09-01mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig optionsDavid Hildenbrand1-1/+1
2024-09-01memory tiering: introduce folio_use_access_time() checkZi Yan1-2/+1
2024-08-15mm/numa: no task_numa_fault() call if PTE is changedZi Yan1-17/+16
2024-07-26mm: fix old/young bit handling in the faulting pathRam Tummala1-1/+1
2024-07-24Merge tag 'random-6.11-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-0/+13
2024-07-19mm: add MAP_DROPPABLE for designating always lazily freeable mappingsJason A. Donenfeld1-0/+13
2024-07-12mm: unexport vmf_insert_mixed_mkwriteChristoph Hellwig1-1/+0
2024-07-06mm: move memory_failure_queue() into copy_mc_[user]_highpage()Kefeng Wang1-9/+3
2024-07-03mm/migrate: move NUMA hinting fault folio isolation + checks under PTLDavid Hildenbrand1-4/+5
2024-07-03mm/migrate: make migrate_misplaced_folio() return 0 on successDavid Hildenbrand1-1/+1
2024-07-03mm: memory: rename pages_per_huge_page to nr_pagesKefeng Wang1-12/+12
2024-07-03mm: memory: improve copy_user_large_folio()Kefeng Wang1-7/+4
2024-07-03mm: memory: use folio in struct copy_subpage_argKefeng Wang1-6/+6
2024-07-03mm: memory: convert clear_huge_page() to folio_zero_user()Kefeng Wang1-18/+16
2024-07-03mm: use folio_add_new_anon_rmap() if folio_test_anon(folio)==falseBarry Song1-0/+9
2024-07-03mm: extend rmap flags arguments for folio_add_new_anon_rmapBarry Song1-5/+5
2024-07-03mm: set pte writable while pte_soft_dirty() is true in do_swap_page()Barry Song1-1/+1
2024-07-03mm: swap: remove 'synchronous' argument to swap_read_folio()Yosry Ahmed1-1/+1
2024-07-03mm: swap: reuse exclusive folio directly instead of wp page faultsBarry Song1-7/+11
2024-07-03mm: memory: extend finish_fault() to support large folioBaolin Wang1-10/+51
2024-07-03mm: swap: entirely map large folios found in swapcacheChuanhua Han1-11/+48
2024-07-03mm: swap: make should_try_to_free_swap() support large-folioChuanhua Han1-1/+1
2024-07-03mm: introduce arch_do_swap_page_nr() which allows restore metadata for nr pagesBarry Song1-1/+2
2024-07-03mm: batch unlink_file_vma calls in free_pgd_rangeMateusz Guzik1-2/+8
2024-07-03mm: use update_mmu_tlb_range() to simplify codeBang Li1-3/+1
2024-07-03mm/memory: cleanly support zeropage in vm_insert_page*(), vm_map_pages*() and...David Hildenbrand1-21/+70
2024-07-03mm/memory: move page_count() check into validate_page_before_insert()David Hildenbrand1-4/+2
2024-07-03mm/vmscan: update stale references to shrink_page_listIllia Ostapyshyn1-1/+1
2024-06-24mm/memory: don't require head page for do_set_pmd()Andrew Bresticker1-1/+2
2024-06-15mm: fix possible OOB in numa_rebuild_large_mapping()Kefeng Wang1-4/+10
2024-06-15Revert "mm: init_mlocked_on_free_v3"David Hildenbrand1-6/+0
2024-05-22mm: simplify and improve print_vma_addr() outputLinus Torvalds1-13/+6
2024-05-19Merge tag 'mm-stable-2024-05-17-19-19' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-134/+171
2024-05-05mm: optimise vmf_anon_prepare() for VMAs without an anon_vmaMatthew Wilcox (Oracle)1-4/+9
2024-05-05mm: delay the check for a NULL anon_vmaMatthew Wilcox (Oracle)1-11/+18
2024-05-05mm: simplify thp_vma_allowable_orderMatthew Wilcox1-4/+6
2024-05-05mm: memory: check userfaultfd_wp() in vmf_orig_pte_uffd_wp()Kefeng Wang1-5/+5
2024-05-05mm/memory: add any_dirty optional pointer to folio_pte_batch()Lance Yang1-2/+2
2024-05-05mm: move mm counter updating out of set_pte_range()Kefeng Wang1-3/+5
2024-05-05mm: add per-order mTHP anon_fault_alloc and anon_fault_fallback countersBarry Song1-0/+5