aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-05x86/mm/pat: fix VM_PAT handling in COW mappingsDavid Hildenbrand1-0/+4
2024-03-26mm/memory: fix missing pte marker for !page on pte zapsPeter Xu1-1/+3
2024-03-13mm: prohibit the last subpage from reusing the entire large folioBarry Song1-0/+10
2024-03-06mm: memory: fix shift-out-of-bounds in fault_around_bytes_setKefeng Wang1-1/+2
2024-03-06mm: make folio_pte_batch available outside of mm/memory.cBarry Song1-76/+0
2024-03-04mm/memory.c: do_numa_page(): remove a redundant page table readJohn Hubbard1-6/+6
2024-03-04mm: convert free_swap_cache() to take a folioMatthew Wilcox (Oracle)1-1/+1
2024-03-04mm/memory: change vmf_anon_prepare() to be non-staticVishal Moola (Oracle)1-1/+1
2024-02-22mm: add pte_batch_hint() to reduce scanning in folio_pte_batch()Ryan Roberts1-7/+12
2024-02-22mm/memory: optimize unmap/zap with PTE-mapped THPDavid Hildenbrand1-26/+66
2024-02-22mm/memory: factor out zapping folio pte into zap_present_folio_pte()David Hildenbrand1-21/+32
2024-02-22mm/memory: further separate anon and pagecache folio handling in zap_present_...David Hildenbrand1-5/+11
2024-02-22mm/memory: handle !page case in zap_present_pte() separatelyDavid Hildenbrand1-11/+11
2024-02-22mm/memory: factor out zapping of present pte into zap_present_pte()David Hildenbrand1-41/+53
2024-02-22mm/memory: ignore writable bit in folio_pte_batch()David Hildenbrand1-6/+24
2024-02-22mm/memory: ignore dirty/accessed/soft-dirty bits in folio_pte_batch()David Hildenbrand1-5/+31
2024-02-22mm/memory: optimize fork() with PTE-mapped THPDavid Hildenbrand1-19/+93
2024-02-22mm/memory: pass PTE to copy_present_pte()David Hildenbrand1-4/+5
2024-02-22mm/memory: factor out copying the actual PTE in copy_present_pte()David Hildenbrand1-30/+33
2024-02-22mm: memory: move mem_cgroup_charge() into alloc_anon_folio()Kefeng Wang1-8/+8
2024-02-21mm: convert mm_counter_file() to take a folioKefeng Wang1-5/+5
2024-02-21mm: convert mm_counter() to take a folioKefeng Wang1-5/+5
2024-02-21mm: convert to should_zap_page() to should_zap_folio()Kefeng Wang1-14/+17
2024-02-21mm: use pfn_swap_entry_folio() in copy_nonpresent_pte()Kefeng Wang1-2/+2
2024-02-21mm: memory: use nth_page() in clear/copy_subpage()Kefeng Wang1-4/+5
2024-02-20mm/swap: fix race when skipping swapcacheKairui Song1-0/+20
2024-02-12mm/memory: Use exception ip to search exception tablesJiaxun Yang1-2/+2
2024-01-25mm/memory: fix folio_set_dirty() vs. folio_mark_dirty() in zap_pte_range()David Hildenbrand1-1/+1
2024-01-09Merge tag 'mm-stable-2024-01-08-15-31' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-94/+198
2023-12-29mm: remove unnecessary ia64 code and commentKefeng Wang1-3/+1
2023-12-29mm/memory: page_try_dup_anon_rmap() -> folio_try_dup_anon_rmap_pte()David Hildenbrand1-3/+5
2023-12-29mm/rmap: convert page_dup_file_rmap() to folio_dup_file_rmap_[pte|ptes|pmd]()David Hildenbrand1-1/+1
2023-12-29mm/memory: page_remove_rmap() -> folio_remove_rmap_pte()David Hildenbrand1-10/+13
2023-12-29mm/memory: page_add_anon_rmap() -> folio_add_anon_rmap_pte()David Hildenbrand1-4/+7
2023-12-29mm/memory: page_add_file_rmap() -> folio_add_file_rmap_[pte|pmd]()David Hildenbrand1-6/+8
2023-12-29mm/rmap: convert folio_add_file_rmap_range() into folio_add_file_rmap_[pte|pt...David Hildenbrand1-1/+1
2023-12-29mm: convert swap_readpage() to swap_read_folio()Matthew Wilcox (Oracle)1-2/+2
2023-12-29mm: remove some calls to page_add_new_anon_rmap()Matthew Wilcox (Oracle)1-1/+1
2023-12-29mm: convert ksm_might_need_to_copy() to work on foliosMatthew Wilcox (Oracle)1-4/+7
2023-12-29mm: fix unmap_mapping_range high bits shift bugJiajun Xie1-2/+2
2023-12-20mm/memory: replace kmap() with kmap_local_page()Fabio M. De Francesco1-3/+2
2023-12-20mm: thp: support allocation of anonymous multi-size THPRyan Roberts1-9/+100
2023-12-20mm: thp: introduce multi-size THP sysfs interfaceRyan Roberts1-3/+3
2023-12-12mm: memory: use folio_prealloc() in wp_page_copy()Kefeng Wang1-15/+7
2023-12-12mm: memory: use a folio in do_cow_fault()Kefeng Wang1-10/+6
2023-12-12mm: memory: rename page_copy_prealloc() to folio_prealloc()Kefeng Wang1-4/+9
2023-12-12mm: memory: use a folio in validate_page_before_insert()Kefeng Wang1-2/+5
2023-12-10mm/memory: use kmap_local_page() in __wp_page_copy_user()Fabio M. De Francesco1-2/+4
2023-12-10mm: convert __do_fault() to use a folioMatthew Wilcox (Oracle)1-10/+10
2023-12-10fork: use __mt_dup() to duplicate maple tree in dup_mmap()Peng Zhang1-1/+6
2023-12-06mm/memory.c:zap_pte_range() print bad swap entryAndrew Morton1-0/+1
2023-10-25mm: use folio_xchg_last_cpupid() in wp_page_reuse()Kefeng Wang1-9/+10
2023-10-25mm: convert wp_page_reuse() and finish_mkwrite_fault() to take a folioKefeng Wang1-9/+10
2023-10-25mm: make finish_mkwrite_fault() staticKefeng Wang1-1/+1
2023-10-25mm: memory: use folio_last_cpupid() in do_numa_page()Kefeng Wang1-1/+1
2023-10-18mm/gup: adapt get_user_page_vma_remote() to never return NULLLorenzo Stoakes1-2/+1
2023-10-18mm: make __access_remote_vm() staticLorenzo Stoakes1-2/+2
2023-10-18memory: move exclusivity detection in do_wp_page() into wp_can_reuse_anon_fol...David Hildenbrand1-43/+45
2023-10-18mm/rmap: convert page_move_anon_rmap() to folio_move_anon_rmap()David Hildenbrand1-1/+1
2023-10-18mm/rmap: move SetPageAnonExclusive() out of page_move_anon_rmap()David Hildenbrand1-0/+1
2023-10-18mm: handle write faults to RO pages under the VMA lockMatthew Wilcox (Oracle)1-7/+6
2023-10-18mm: handle read faults under the VMA lockMatthew Wilcox (Oracle)1-4/+3
2023-10-18mm: handle COW faults under the VMA lockMatthew Wilcox (Oracle)1-7/+5
2023-10-18mm: handle shared faults under the VMA lockMatthew Wilcox (Oracle)1-4/+18
2023-10-18mm: call wp_page_copy() under the VMA lockMatthew Wilcox (Oracle)1-13/+26
2023-10-18userfaultfd: UFFD_FEATURE_WP_ASYNCPeter Xu1-3/+25
2023-10-18Merge mm-hotfixes-stable into mm-stable to pick up depended-upon changes.Andrew Morton1-5/+8
2023-10-18hugetlbfs: close race between MADV_DONTNEED and page faultRik van Riel1-5/+8
2023-10-16mm: mempolicy: make mpol_misplaced() to take a folioKefeng Wang1-1/+1
2023-10-16mm: memory: make numa_migrate_prep() to take a folioKefeng Wang1-5/+4
2023-10-16mm: memory: use a folio in do_numa_page()Kefeng Wang1-17/+17
2023-10-16mm: memory: add vm_normal_folio_pmd()Kefeng Wang1-0/+10
2023-10-04mm: migrate: convert migrate_misplaced_page() to migrate_misplaced_folio()Kefeng Wang1-1/+1
2023-10-04mm: remove remnants of SPLIT_RSS_COUNTINGMateusz Guzik1-2/+0
2023-08-31Merge tag 'x86_shstk_for_6.6-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-2/+3
2023-08-29Merge tag 'mm-stable-2023-08-28-18-26' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-151/+190
2023-08-24mm: remove enum page_entry_sizeMatthew Wilcox (Oracle)1-4/+4
2023-08-24mm: allow ->huge_fault() to be called without the mmap_lock heldMatthew Wilcox (Oracle)1-20/+2
2023-08-24mm: remove checks for pte_indexMatthew Wilcox (Oracle)1-16/+1
2023-08-24mm/swap: inline folio_set_swap_entry() and folio_swap_entry()David Hildenbrand1-1/+1
2023-08-24mm/swap: stop using page->private on tail pages for THP_SWAPDavid Hildenbrand1-1/+1
2023-08-24mm: call update_mmu_cache_range() in more page fault handling pathsMatthew Wilcox (Oracle)1-7/+8
2023-08-24mm: convert do_set_pte() to set_pte_range()Yin Fengwei1-13/+24
2023-08-24mm: use flush_icache_pages() in do_set_pmd()Matthew Wilcox (Oracle)1-3/+1
2023-08-24mm: handle userfaults under VMA lockSuren Baghdasaryan1-8/+1
2023-08-24mm: handle swap page faults under per-VMA lockSuren Baghdasaryan1-6/+10
2023-08-24mm: change folio_lock_or_retry to use vm_fault directlySuren Baghdasaryan1-8/+6
2023-08-24mm: drop per-VMA lock when returning VM_FAULT_RETRY or VM_FAULT_COMPLETEDSuren Baghdasaryan1-0/+12
2023-08-24mm/memory.c: fix mismergeMatthew Wilcox1-1/+1
2023-08-21mm: convert ptlock_free() to use ptdescsVishal Moola (Oracle)1-2/+2
2023-08-21mm: convert ptlock_alloc() to use ptdescsVishal Moola (Oracle)1-2/+2
2023-08-21mm: replace mmap with vma write lock assertions when operating on a vmaSuren Baghdasaryan1-1/+1
2023-08-21mm/memory.c: fix some kernel-doc commentsYang Li1-1/+2
2023-08-21mm: avoid 'might_sleep()' in get_mmap_lock_carefully()Linus Torvalds1-4/+1
2023-08-18mm: handle faults that merely update the accessed bit under the VMA lockMatthew Wilcox (Oracle)1-6/+17
2023-08-18mm: handle swap and NUMA PTE faults under the VMA lockMatthew Wilcox (Oracle)1-6/+6
2023-08-18mm: run the fault-around code under the VMA lockMatthew Wilcox (Oracle)1-5/+5
2023-08-18mm: move FAULT_FLAG_VMA_LOCK check down from do_fault()Matthew Wilcox (Oracle)1-5/+15
2023-08-18mm: move FAULT_FLAG_VMA_LOCK check down in handle_pte_fault()Matthew Wilcox (Oracle)1-5/+11
2023-08-18mm: handle some PMD faults under the VMA lockMatthew Wilcox (Oracle)1-14/+25
2023-08-18mm: handle PUD faults under the VMA lockMatthew Wilcox (Oracle)1-13/+24
2023-08-18mm: move FAULT_FLAG_VMA_LOCK check from handle_mm_fault()Matthew Wilcox (Oracle)1-9/+9
2023-08-18mm: allow per-VMA locks on file-backed VMAsMatthew Wilcox (Oracle)1-5/+5
2023-08-18mm: change do_vmi_align_munmap() tracking of VMAs to removeLiam R. Howlett1-9/+7
2023-08-18mmu_notifiers: don't invalidate secondary TLBs as part of mmu_notifier_invali...Alistair Popple1-6/+2
2023-08-18mm/memory: pass folio into do_page_mkwrite()Sidhartha Kumar1-4/+3
2023-08-18mm: make PTE_MARKER_SWAPIN_ERROR more generalAxel Rasmussen1-6/+9
2023-08-18mm/memory: convert do_read_fault() to use foliosSidhartha Kumar1-2/+4
2023-08-18mm/memory: convert do_shared_fault() to foliosSidhartha Kumar1-4/+7
2023-08-18mm/memory: convert wp_page_shared() to use foliosSidhartha Kumar1-11/+11
2023-08-18mm/memory: convert do_page_mkwrite() to use foliosSidhartha Kumar1-5/+5
2023-08-18mm: fix some kernel-doc commentsYang Li1-1/+2
2023-08-18ksm: add ksm zero pages for each processxu xin1-2/+2
2023-08-18ksm: count all zero pages placed by KSMxu xin1-1/+4
2023-08-18mm: use a folio in fault_dirty_shared_page()ZhangPeng1-8/+8
2023-08-18mm: increase usage of folio_next_index() helperSidhartha Kumar1-1/+1
2023-08-09mm: Fix access_remote_vm() regression on tagged addressesKirill A. Shutemov1-0/+3
2023-07-27mm: lock_vma_under_rcu() must check vma->anon_vma under vma lockJann Horn1-12/+16
2023-07-11mm: Warn on shadow stack memory in wrong vmaRick Edgecombe1-0/+1
2023-07-11mm: Make pte_mkwrite() take a VMARick Edgecombe1-2/+2
2023-07-08mm: call arch_swap_restore() from do_swap_page()Peter Collingbourne1-0/+7
2023-06-29gup: avoid stack expansion warning for known-good caseLinus Torvalds1-0/+4
2023-06-28Merge branch 'expand-stack'Linus Torvalds1-12/+138
2023-06-28Merge tag 'net-next-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-3/+4
2023-06-28mm: fix __access_remote_vm() GUP failure caseLinus Torvalds1-0/+1
2023-06-27mm: always expand the stack with the mmap write lock heldLinus Torvalds1-1/+9
2023-06-24mm: make find_extend_vma() fail if write lock not heldLiam R. Howlett1-1/+1
2023-06-24mm: make the page fault mmap locking killableLinus Torvalds1-4/+2
2023-06-24mm: introduce new 'lock_mm_and_find_vma()' page fault helperLinus Torvalds1-0/+121
2023-06-23mm: remove references to pagevecMatthew Wilcox (Oracle)1-3/+3
2023-06-19mm: ptep_get() conversionRyan Roberts1-46/+54
2023-06-19perf/core: allow pte_offset_map() to failHugh Dickins1-2/+4
2023-06-19mm/memory: handle_pte_fault() use pte_offset_map_nolock()Hugh Dickins1-25/+13
2023-06-19mm/memory: allow pte_offset_map[_lock]() to failHugh Dickins1-86/+81
2023-06-19mm: use pmdp_get_lockless() without surplus barrier()Hugh Dickins1-12/+2
2023-06-18tcp: Use per-vma locking for receive zerocopyArjun Roy1-3/+4
2023-06-09mm: fix failure to unmap pte on highmem systemsRyan Roberts1-4/+2
2023-06-09mm/gup: remove vmas parameter from get_user_pages_remote()Lorenzo Stoakes1-10/+10
2023-04-21mm: do not increment pgfault stats when page fault handler retriesSuren Baghdasaryan1-19/+27
2023-04-18mm: hwpoison: support recovery from HugePage copy-on-write faultsLiu Shixin1-21/+38
2023-04-18mm: convert copy_user_huge_page() to copy_user_large_folio()ZhangPeng1-14/+14
2023-04-18userfaultfd: convert copy_huge_page_from_user() to copy_folio_from_user()ZhangPeng1-12/+11
2023-04-18userfaultfd: use kmap_local_page() in copy_huge_page_from_user()ZhangPeng1-8/+6
2023-04-16sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-1/+15
2023-04-05sched/numa: enhance vma scanning logicRaghavendra K T1-0/+3
2023-04-05mm: introduce per-VMA lock statisticsSuren Baghdasaryan1-0/+2
2023-04-05mm: prevent userfaults to be handled under per-vma lockSuren Baghdasaryan1-0/+9
2023-04-05mm: prevent do_swap_page from handling page faults under VMA lockSuren Baghdasaryan1-0/+5
2023-04-05mm: fall back to mmap_lock if vma->anon_vma is not yet setSuren Baghdasaryan1-0/+4
2023-04-05mm: introduce lock_vma_under_rcu to be used from arch-specific codeSuren Baghdasaryan1-0/+46
2023-04-05mm: conditionally write-lock VMA in free_pgtablesSuren Baghdasaryan1-1/+5
2023-04-05mm: hold the RCU read lock over calls to ->map_pagesMatthew Wilcox (Oracle)1-3/+8
2023-04-05mm: remove unused vmf_insert_mixed_prot()Lorenzo Stoakes1-39/+18
2023-04-05mm: prefer fault_around_pages to fault_around_bytesLorenzo Stoakes1-11/+15
2023-04-05mm: refactor do_fault_around()Lorenzo Stoakes1-22/+16
2023-04-05mm/uffd: UFFD_FEATURE_WP_UNPOPULATEDPeter Xu1-14/+42
2023-04-05mm: take a page reference when removing device exclusive entriesAlistair Popple1-1/+15
2023-03-28mm: add PTE pointer parameter to flush_tlb_fix_spurious_fault()Gerald Schaefer1-1/+2
2023-03-28mm: memory: use folio_throttle_swaprate() in do_cow_fault()Kefeng Wang1-1/+1
2023-03-28mm: memory: use folio_throttle_swaprate() in do_anonymous_page()Kefeng Wang1-1/+1
2023-03-28mm: memory: use folio_throttle_swaprate() in wp_page_copy()Kefeng Wang1-1/+1
2023-03-28mm: memory: use folio_throttle_swaprate() in page_copy_prealloc()Kefeng Wang1-1/+1
2023-03-28mm: memory: use folio_throttle_swaprate() in do_swap_page()Kefeng Wang1-1/+1
2023-03-28x86/mm/pat: clear VM_PAT if copy_p4d_range failedMa Wupeng1-0/+1
2023-02-20mm/uffd: fix comment in handling pte markersPeter Xu1-3/+1
2023-02-10Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-0/+3
2023-02-09mm: introduce __vm_flags_mod and use it in untrack_pfnSuren Baghdasaryan1-6/+7
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-3/+3
2023-02-09mm: hwpoison: support recovery from ksm_might_need_to_copy()Kefeng Wang1-0/+3
2023-02-02mm: use a folio in copy_present_pte()Matthew Wilcox (Oracle)1-6/+9
2023-02-02mm: use a folio in copy_pte_range()Matthew Wilcox (Oracle)1-26/+25
2023-02-02mm: convert wp_page_copy() to use foliosMatthew Wilcox (Oracle)1-33/+32
2023-02-02mm: convert do_anonymous_page() to use a folioMatthew Wilcox (Oracle)1-11/+9
2023-02-02mm: add vma_alloc_zeroed_movable_folio()Matthew Wilcox (Oracle)1-6/+10
2023-02-02mm: remove __HAVE_ARCH_PTE_SWP_EXCLUSIVEDavid Hildenbrand1-4/+0
2023-02-02mm/mmu_notifier: remove unused mmu_notifier_range_update_to_read_only exportAlistair Popple1-5/+5
2023-01-18mm: add vma_has_recency()Yu Zhao1-4/+3
2023-01-18mm: remove zap_page_range and create zap_vma_pagesMike Kravetz1-30/+0
2023-01-18mm/memory: add vm_normal_folio()Vishal Moola (Oracle)1-0/+10
2023-01-18mm/uffd: always wr-protect pte in pte|pmd_mkuffd_wp()Peter Xu1-5/+3
2023-01-18mm: fix a few rare cases of using swapin error pte markerPeter Xu1-2/+6
2023-01-18mm/uffd: fix pte marker when fork() without fork eventPeter Xu1-6/+2
2022-12-11mm: remove VM_FAULT_WRITEDavid Hildenbrand1-5/+4
2022-11-30mm: extend FAULT_FLAG_UNSHARE support to anything in a COW mappingDavid Hildenbrand1-4/+0
2022-11-30mm: don't call vm_ops->huge_fault() in wp_huge_pmd()/wp_huge_pud() for privat...David Hildenbrand1-9/+15
2022-11-30mm: rework handling in do_wp_page() based on private vs. shared mappingsDavid Hildenbrand1-21/+17
2022-11-30mm: add early FAULT_FLAG_WRITE consistency checksDavid Hildenbrand1-0/+8
2022-11-30mm: add early FAULT_FLAG_UNSHARE consistency checksDavid Hildenbrand1-3/+20
2022-11-30mm: mmu_gather: do not expose delayed_rmap flagAlexander Gordeev1-2/+1
2022-11-30mm: delay page_remove_rmap() until after the TLB has been flushedLinus Torvalds1-6/+17
2022-11-30mm/autonuma: use can_change_(pte|pmd)_writable() to replace savedwriteDavid Hildenbrand1-3/+13
2022-11-30mm: use pte markers for swap errorsPeter Xu1-2/+4
2022-11-30mm: always compile in pte markersPeter Xu1-4/+3
2022-11-30mm, hwpoison: when copy-on-write hits poison, take page offlineTony Luck1-1/+3
2022-11-30mm, hwpoison: try to recover from copy-on write faultsTony Luck1-10/+20
2022-11-30mm: convert mm's rss stats into percpu_counterShakeel Butt1-62/+11
2022-11-30Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-14/+13
2022-11-30hugetlb: don't delete vma_lock in hugetlb MADV_DONTNEED processingMike Kravetz1-1/+1
2022-11-30madvise: use zap_page_range_single for madvise dontneedMike Kravetz1-12/+11
2022-11-22mm/memory: return vm_fault_t result from migrate_to_ram() callbackAlistair Popple1-1/+1