aboutsummaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-09ksm: use range-walk function to jump over holes in scan_get_next_rmap_itemPedro Demarchi Gomes1-9/+104
2025-10-03mm/ksm: cleanup mm_slot_entry() invocationWei Yang1-13/+14
2025-09-28mm/ksm: get mm_slot by mm_slot_entry() when slot is !NULLWei Yang1-9/+11
2025-09-23ksm: use a folio inside cmp_and_merge_page()Matthew Wilcox (Oracle)1-9/+6
2025-09-13mm: convert core mm to mm_flags_*() accessorsLorenzo Stoakes1-16/+16
2025-07-31Merge tag 'mm-stable-2025-07-30-15-25' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-21/+34
2025-07-19mm/ksm: fix -Wsometimes-uninitialized from clang-21 in advisor_mode_show()Nathan Chancellor1-3/+3
2025-07-13mm: rename PAGE_MAPPING_* to FOLIO_MAPPING_*David Hildenbrand1-2/+2
2025-07-09mm: update core kernel code to use vm_flags_t consistentlyLorenzo Stoakes1-1/+1
2025-07-09mm: prevent KSM from breaking VMA merging for new VMAsLorenzo Stoakes1-6/+12
2025-07-09mm: ksm: refer to special VMAs via VM_SPECIAL in ksm_compatible()Lorenzo Stoakes1-3/+2
2025-07-09mm: ksm: have KSM VMA checks not require a VMA pointerLorenzo Stoakes1-12/+20
2025-03-16mm/ksm: handle device-exclusive entries correctly in write_protect_page()David Hildenbrand1-1/+8
2025-01-25ksm: add ksm involvement information for each processxu xin1-0/+19
2024-11-23Merge tag 'mm-stable-2024-11-18-19-27' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-55/+55
2024-11-07mm: mass constification of folio/page pointersMatthew Wilcox (Oracle)1-2/+3
2024-11-07mm: renovate page_address_in_vma()Matthew Wilcox (Oracle)1-4/+3
2024-11-06mm: remove unused hugepage for vma_alloc_folio()Kefeng Wang1-1/+1
2024-11-06mm: remove PageKsm()Matthew Wilcox (Oracle)1-2/+2
2024-11-06ksm: convert should_skip_rmap_item() to take a folioMatthew Wilcox (Oracle)1-4/+4
2024-11-06ksm: convert cmp_and_merge_page() to use a folioMatthew Wilcox (Oracle)1-25/+26
2024-11-06ksm: use a folio in try_to_merge_one_page()Matthew Wilcox (Oracle)1-16/+17
2024-11-05mm: move mm flags to mm_types.hNanyong Sun1-1/+0
2024-09-03mm: remove PageSwapCacheMatthew Wilcox (Oracle)1-9/+10
2024-09-01mm/ksm: convert break_ksm() from walk_page_range_vma() to folio_walkDavid Hildenbrand1-47/+16
2024-09-01mm/ksm: convert scan_get_next_rmap_item() from follow_page() to folio_walkDavid Hildenbrand1-14/+24
2024-09-01mm/ksm: convert get_mergeable_page() from follow_page() to folio_walkDavid Hildenbrand1-12/+14
2024-07-24Merge tag 'random-6.11-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+1
2024-07-19mm: add MAP_DROPPABLE for designating always lazily freeable mappingsJason A. Donenfeld1-1/+1
2024-07-06mm: move memory_failure_queue() into copy_mc_[user]_highpage()Kefeng Wang1-1/+0
2024-07-04mm/ksm: optimize the chain()/chain_prune() interfacesChengming Zhou1-125/+27
2024-07-04mm/ksm: don't waste time searching stable tree for fast changing pageChengming Zhou1-15/+17
2024-07-04mm/ksm: refactor out try_to_merge_with_zero_page()Chengming Zhou1-30/+40
2024-07-03mm: ksm: drop KSM_KMEM_CACHE()Kefeng Wang1-7/+3
2024-06-05mm/ksm: fix ksm_zero_pages accountingChengming Zhou1-6/+5
2024-06-05mm/ksm: fix ksm_pages_scanned accountingChengming Zhou1-4/+2
2024-05-24mm/ksm: fix possible UAF of stable_nodeChengming Zhou1-1/+2
2024-05-19Merge tag 'mm-stable-2024-05-17-19-19' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-143/+148
2024-05-05mm/memory-failure: pass the folio to collect_procs_ksm()Matthew Wilcox (Oracle)1-3/+2
2024-05-05mm/ksm: remove page_mapcount() usage in stable_tree_search()David Hildenbrand1-5/+8
2024-05-05mm/ksm: replace set_page_stable_node by folio_set_stable_nodeAlex Shi (tencent)1-9/+3
2024-05-05mm/ksm: rename get_ksm_page_flags to ksm_get_folio_flagsDavid Hildenbrand1-16/+16
2024-05-05mm/ksm: convert chain series funcs and replace get_ksm_pageAlex Shi (tencent)1-71/+65
2024-05-05mm/ksm: use folio in write_protect_pageAlex Shi (tencent)1-12/+13
2024-05-05mm/ksm: use ksm_get_folio in scan_get_next_rmap_itemAlex Shi (tencent)1-5/+5
2024-05-05mm/ksm: use folio in stable_node_dupAlex Shi (tencent)1-8/+8
2024-05-05mm/ksm: use folio in remove_stable_nodeAlex Shi (tencent)1-12/+12
2024-05-05mm/ksm: add folio_set_stable_nodeAlex Shi (tencent)1-1/+7
2024-05-05mm/ksm: use folio in remove_rmap_item_from_treeAlex Shi (tencent)1-5/+5
2024-05-05mm/ksm: add ksm_get_folioAlex Shi (tencent)1-17/+25
2024-04-12mm: replace set_pte_at_notify() with just set_pte_at()Paolo Bonzini1-2/+2
2023-12-29mm: convert page_try_share_anon_rmap() to folio_try_share_anon_rmap_[pte|pmd]()David Hildenbrand1-2/+3
2023-12-29mm/ksm: page_remove_rmap() -> folio_remove_rmap_pte()David Hildenbrand1-1/+1
2023-12-29mm/ksm: page_add_anon_rmap() -> folio_add_anon_rmap_pte()David Hildenbrand1-3/+5
2023-12-29mm/ksm: add tracepoint for ksm advisorStefan Roesch1-0/+1
2023-12-29mm/ksm: add sysfs knobs for advisorStefan Roesch1-0/+148
2023-12-29mm/ksm: add ksm advisorStefan Roesch1-1/+157
2023-12-29mm: convert ksm_might_need_to_copy() to work on foliosMatthew Wilcox (Oracle)1-10/+11
2023-12-20mm: ksm: remove unnecessary try_to_freeze()Kevin Hao1-3/+1
2023-12-12mm: ksm: use more folio api in ksm_might_need_to_copy()Kefeng Wang1-18/+21
2023-12-10mm/ksm: use kmap_local_page() in calc_checksum()Fabio M. De Francesco1-2/+2
2023-11-15mm: more ptep_get() conversionRyan Roberts1-1/+1
2023-10-16mm/ksm: add pages_skipped metricStefan Roesch1-0/+12
2023-10-16mm/ksm: add "smart" page scanning modeStefan Roesch1-0/+104
2023-09-05mm: memory-failure: use rcu lock instead of tasklist_lock when collect_procs()Tong Tiangen1-2/+2
2023-08-21merge mm-hotfixes-stable into mm-stable to pick up depended-upon changesAndrew Morton1-9/+18
2023-08-21mm/ksm: add pages scanned metricStefan Roesch1-1/+15
2023-08-21mm: enable page walking API to lock vmas during the walkSuren Baghdasaryan1-9/+16
2023-08-18ksm: consider KSM-placed zeropages when calculating KSM profitxu xin1-2/+2
2023-08-18ksm: add ksm zero pages for each processxu xin1-0/+1
2023-08-18ksm: count all zero pages placed by KSMxu xin1-0/+12
2023-08-18ksm: support unsharing KSM-placed zero pagesxu xin1-3/+8
2023-08-04mm/swapfile: fix wrong swap entry type for hwpoisoned swapcache pageMiaohe Lin1-0/+2
2023-06-23mm: remove references to pagevecMatthew Wilcox (Oracle)1-3/+3
2023-06-19mm: ptep_get() conversionRyan Roberts1-10/+12
2023-06-19mm/various: give up if pte_offset_map[_lock]() failsHugh Dickins1-3/+4
2023-06-19mm: use pmdp_get_lockless() without surplus barrier()Hugh Dickins1-2/+1
2023-05-02mm/ksm: move disabling KSM from s390/gmap code to KSM codeDavid Hildenbrand1-0/+11
2023-05-02mm/ksm: unmerge and clear VM_MERGEABLE when setting PR_SET_MEMORY_MERGE=0David Hildenbrand1-0/+59
2023-04-21mm: add new KSM process and sysfs knobsStefan Roesch1-0/+21
2023-04-21mm: add new api to enable ksm per processStefan Roesch1-17/+87
2023-04-18mm: ksm: support hwpoison for ksm pageLonglong Xia1-0/+45
2023-03-28mm: add tracepoints to ksmStefan Roesch1-2/+19
2023-03-23mm/ksm: fix race with VMA iteration and mm_struct teardownLiam R. Howlett1-2/+9
2023-02-10Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-2/+5
2023-02-09mm: hwpoison: support recovery from ksm_might_need_to_copy()Kefeng Wang1-2/+5
2023-02-02mm/mmu_notifier: remove unused mmu_notifier_range_update_to_read_only exportAlistair Popple1-3/+2
2022-12-11mm/ksm: convert break_ksm() to use walk_page_range_vma()David Hildenbrand1-10/+39
2022-12-11mm/ksm: fix KSM COW breaking with userfaultfd-wp via FAULT_FLAG_UNSHAREDavid Hildenbrand1-7/+5
2022-12-11mm/ksm: simplify break_ksm() to not rely on VM_FAULT_WRITEDavid Hildenbrand1-12/+13
2022-11-30mm/autonuma: use can_change_(pte|pmd)_writable() to replace savedwriteDavid Hildenbrand1-5/+4
2022-11-08memory: move hotplug memory notifier priority to same file for easy sortingLiu Shixin1-1/+1
2022-10-03ksm: use a folio in replace_page()Matthew Wilcox (Oracle)1-3/+5
2022-10-03ksm: convert to use common struct mm_slotQi Zheng1-76/+56
2022-10-03ksm: convert ksm_mm_slot.link to ksm_mm_slot.hashQi Zheng1-7/+7
2022-10-03ksm: convert ksm_mm_slot.mm_list to ksm_mm_slot.mm_nodeQi Zheng1-20/+20
2022-10-03ksm: add the ksm prefix to the names of the ksm private structuresQi Zheng1-108/+108
2022-09-26ksm: count allocated ksm rmap_items for each processxu xin1-0/+2
2022-09-26mm: fix the handling Non-LRU pages returned by follow_pageHaiyue Wang1-3/+9
2022-09-26mm/ksm: use vma iterators instead of vma linked listMatthew Wilcox (Oracle)1-7/+11
2022-09-11mm: fix PageAnonExclusive clearing racing with concurrent RCU GUP-fastDavid Hildenbrand1-0/+1
2022-09-11mm/khugepaged: record SCAN_PMD_MAPPED when scan_pmd() finds hugepageZach O'Keefe1-0/+10
2022-08-05Merge tag 'mm-stable-2022-08-03' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-5/+5
2022-08-02mm/folio-compat: Remove migration compatibility functionsMatthew Wilcox (Oracle)1-1/+1
2022-07-17mm: handling Non-LRU pages returned by vm_normal_pagesAlex Sierra1-3/+3
2022-06-27docs: rename Documentation/vm to Documentation/mmMike Rapoport1-2/+2
2022-05-25ksm: fix typo in commentJulia Lawall1-1/+1
2022-05-19mm: don't be stuck to rmap lock on reclaim pathMinchan Kim1-2/+8
2022-05-09mm: remember exclusively mapped anonymous pages with PG_anon_exclusiveDavid Hildenbrand1-1/+12
2022-05-09mm/rmap: remove do_page_add_anon_rmap()David Hildenbrand1-1/+1
2022-04-28ksm: count ksm merging pages for each processxu xin1-0/+8
2022-03-22Merge tag 'folio-5.18c' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-22/+10
2022-03-22mm/ksm: use helper macro __ATTR_RWMiaohe Lin1-2/+1
2022-03-22mm/vmstat: add event for ksm swapping in copyYang Yang1-0/+3
2022-03-21mm/rmap: Constify the rmap_walk_control argumentMatthew Wilcox (Oracle)1-1/+1
2022-03-21mm/rmap: Convert rmap_walk() to take a folioMatthew Wilcox (Oracle)1-6/+6
2022-03-21mm: Turn page_anon_vma() into folio_anon_vma()Matthew Wilcox (Oracle)1-1/+2
2022-03-21mm: Add DEFINE_PAGE_VMA_WALK and DEFINE_FOLIO_VMA_WALKMatthew Wilcox (Oracle)1-4/+1
2022-02-17mm/munlock: rmap call mlock_vma_page() munlock_vma_page()Hugh Dickins1-11/+1
2022-01-15mm: ksm: fix use-after-free kasan report in ksm_might_need_to_copyNanyong Sun1-2/+2
2022-01-15mm: move tlb_flush_pending inline helpers to mm_inline.hArnd Bergmann1-0/+1
2021-10-18mm/migrate: Add folio_migrate_flags()Matthew Wilcox (Oracle)1-13/+18
2021-09-27mm/memcg: Convert mem_cgroup_charge() to take a folioMatthew Wilcox (Oracle)1-1/+2
2021-09-13mm/ksm: remove old GCC 4.9+ checkNick Desaulniers1-2/+0
2021-09-03mm: KSM: fix data typeZhansaya Bagdauletkyzy1-4/+4
2021-06-29mm/ksm: use vma_lookup() in find_mergeable_vma()Liam Howlett1-4/+2
2021-05-14ksm: revert "use GET_KSM_PAGE_NOLOCK to get ksm page in remove_rmap_item_from...Hugh Dickins1-1/+2
2021-05-07mm: fix typos in commentsIngo Molnar1-2/+2
2021-05-07drivers/char: remove /dev/kmem for goodDavid Hildenbrand1-1/+1
2021-05-05mm/ksm: remove unused parameter from remove_trailing_rmap_items()Chengyang Fan1-4/+3
2021-05-05ksm: fix potential missing rmap_item for stable_nodeMiaohe Lin1-0/+1
2021-05-05ksm: remove dedicated macro KSM_FLAG_MASKMiaohe Lin1-3/+1
2021-05-05ksm: use GET_KSM_PAGE_NOLOCK to get ksm page in remove_rmap_item_from_tree()Miaohe Lin1-2/+1
2021-05-05ksm: remove redundant VM_BUG_ON_PAGE() on stable_tree_search()Miaohe Lin1-2/+0
2020-12-15mm: cleanup kstrto*() usageAlexey Dobriyan1-9/+9
2020-12-15mm: use sysfs_emit for struct kobject * usesJoe Perches1-16/+16
2020-10-15docs: get rid of :c:type explicit declarations for structsMauro Carvalho Chehab1-1/+1
2020-09-19ksm: reinstate memcg charge on copied pagesHugh Dickins1-0/+4
2020-09-04Merge branch 'simplify-do_wp_page'Linus Torvalds1-25/+0
2020-09-04mm/ksm: Remove reuse_ksm_page()Peter Xu1-25/+0
2020-08-24Revert "powerpc/64s: Remove PROT_SAO support"Shawn Anastasio1-0/+4
2020-08-12mm: do page fault accounting in handle_mm_faultPeter Xu1-1/+2
2020-08-07Merge tag 'powerpc-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-4/+0
2020-07-22powerpc/64s: Remove PROT_SAO supportNicholas Piggin1-4/+0
2020-07-16treewide: Remove uninitialized_var() usageKees Cook1-1/+1
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-6/+6
2020-06-09mmap locking API: convert mmap_sem API commentsMichel Lespinasse1-1/+1
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-17/+17
2020-06-04mm: ksm: fix a typo in comment "alreaady"->"already"Ethon Paul1-5/+5
2020-04-21mm/ksm: fix NULL pointer dereference when KSM zero page is enabledMuchun Song1-2/+10
2020-04-07mm: use fallthrough;Joe Perches1-2/+1
2020-04-07mm/ksm.c: update get_user_pages() argument in commentLi Chen1-1/+1
2019-12-04Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds1-0/+1
2019-11-28mm: ksm: Export ksm_madvise()Bharata B Rao1-0/+1
2019-11-22mm/ksm.c: don't WARN if page is still mapped in remove_stable_node()Andrey Ryabinin1-7/+7
2019-09-24mm: move memcmp_pages() and pages_identical()Song Liu1-18/+0
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 482Thomas Gleixner1-2/+1
2019-05-14mm/mmu_notifier: use correct mmu_notifier events for each invalidationJérôme Glisse1-2/+2
2019-05-14mm/mmu_notifier: contextual information for event triggering invalidationJérôme Glisse1-2/+4
2019-03-05mm: ksm: do not block on page lock when searching stable treeYang Shi1-10/+35
2019-03-05mm: reuse only-pte-mapped KSM page in do_wp_page()Kirill Tkhai1-2/+28
2019-03-05mm: replace all open encodings for NUMA_NO_NODEAnshuman Khandual1-1/+1
2018-12-28ksm: react on changing "sleep_millisecs" parameter fasterKirill Tkhai1-2/+8
2018-12-28mm/mmu_notifier: use structure for invalidate_range_start/end calls v2Jérôme Glisse1-12/+9
2018-12-28ksm: replace jhash2 with xxhashTimofey Titovets1-2/+2
2018-08-22include/linux/compiler*.h: make compiler-*.h mutually exclusiveNick Desaulniers1-2/+2
2018-08-22mm: fix page_freeze_refs and page_unfreeze_refs in commentsJiang Biao1-2/+2
2018-08-17mm: convert return type of handle_mm_fault() caller to vm_fault_tSouptick Joarder1-1/+1
2018-08-17dax: remove VM_MIXEDMAP for fsdax and device daxDave Jiang1-0/+3
2018-06-15mm/ksm.c: ignore STABLE_FLAG of rmap_item->address in rmap_walk_ksm()Jia He1-4/+10
2018-06-07mm/ksm: move [set_]page_stable_node from ksm.h to ksm.cMike Rapoport1-0/+11
2018-04-27mm/ksm: docs: extend overview comment and make it "DOC:"Mike Rapoport1-1/+18
2018-04-16Merge branch 'mm-rst' into docs-nextJonathan Corbet1-2/+2
2018-04-16docs/vm: rename documentation files to .rstMike Rapoport1-2/+2
2018-04-11mm/ksm.c: fix inconsistent accounting of zero pagesClaudio Imbrenda1-0/+7
2018-04-05mm/ksm: fix interaction with THPClaudio Imbrenda1-0/+28
2018-04-05mm/ksm.c: make stable_node_dup() staticColin Ian King1-4/+4
2018-03-18sparc64: Add support for ADI (Application Data Integrity)Khalid Aziz1-0/+4
2018-02-06mm: docs: fixup punctuationMike Rapoport1-1/+1
2017-12-04mm/ksm: Remove now-redundant smp_read_barrier_depends()Paul E. McKenney1-8/+1
2017-11-15mm/mmu_notifier: avoid double notification when it is uselessJérôme Glisse1-2/+13
2017-10-03ksm: fix unlocked iteration over vmas in cmp_and_merge_page()Kirill Tkhai1-1/+4
2017-09-06mm/ksm.c: constify attribute_group structuresArvind Yadav1-1/+1
2017-08-10mm: fix KSM data corruptionMinchan Kim1-1/+2
2017-07-06ksm: optimize refile of stable_node_dup at the head of the chainAndrea Arcangeli1-12/+23
2017-07-06ksm: swap the two output parameters of chain/chain_pruneAndrea Arcangeli1-26/+52
2017-07-06ksm: cleanup stable_node chain collapse caseAndrea Arcangeli1-22/+28
2017-07-06ksm: fix use after free with merge_across_nodes = 0Andrea Arcangeli1-11/+55
2017-07-06ksm: introduce ksm_max_page_sharing per page deduplication limitAndrea Arcangeli1-66/+667
2017-06-02ksm: prevent crash after write_protect_page failsAndrea Arcangeli1-2/+1
2017-05-03mm: make rmap_one boolean functionMinchan Kim1-1/+1
2017-05-03mm: make rmap_walk() return voidMinchan Kim1-10/+6
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-02-27mm: add new mmgrab() helperVegard Nossum1-1/+1
2017-02-24mm/ksm: handle protnone saved writes when making page write protectAneesh Kumar K.V1-2/+7
2017-02-24mm, ksm: convert write_protect_page() to use page_vma_mapped_walk()Kirill A. Shutemov1-16/+18
2017-02-24mm/ksm: improve deduplication of zero pages with colouringClaudio Imbrenda1-3/+65
2016-10-07mm,ksm: add __GFP_HIGH to the allocation in alloc_stable_node()zhong jiang1-1/+6
2016-09-28mm,ksm: fix endless looping in allocating memory when ksm enablezhong jiang1-1/+2