aboutsummaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
AgeCommit message (Expand)AuthorFilesLines
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
2016-07-26mm: do not pass mm_struct into handle_mm_faultKirill A. Shutemov1-3/+2
2016-07-26mm: migrate: support non-lru movable page migrationMinchan Kim1-2/+2
2016-05-12ksm: fix conflict between mmput and scan_get_next_rmap_itemZhou Chengming1-5/+10
2016-02-18mm/core: Do not enforce PKEY permissions on remote mm accessDave Hansen1-2/+8
2016-02-16mm/gup: Switch all callers of get_user_pages() to not pass tsk/mmDave Hansen1-1/+1
2016-01-15mm/ksm.c: mark stable page dirtyMinchan Kim1-0/+6
2016-01-15ksm: prepare to new THP semanticsKirill A. Shutemov1-47/+10
2016-01-15rmap: add argument to charge compound pageKirill A. Shutemov1-2/+2
2016-01-15page-flags: define PG_locked behavior on compound pagesKirill A. Shutemov1-1/+1
2016-01-14mm/ksm.c: use list_for_each_entry_safeGeliang Tang1-13/+7
2015-11-05ksm: unstable_tree_search_insert error checking cleanupAndrea Arcangeli1-2/+3
2015-11-05ksm: use find_mergeable_vma in try_to_merge_with_ksm_pageAndrea Arcangeli1-6/+2
2015-11-05ksm: use the helper method to do the hlist_empty checkAndrea Arcangeli1-1/+1
2015-11-05ksm: don't fail stable tree lookups if walking over stale stable_nodesAndrea Arcangeli1-5/+27
2015-11-05ksm: add cond_resched() to the rmap_walksAndrea Arcangeli1-0/+2
2015-04-15mm: remove rest of ACCESS_ONCE() usagesJason Low1-5/+5
2015-02-10mm: remove rest usage of VM_NONLINEAR and pte_file()Kirill A. Shutemov1-1/+1
2015-01-29vm: add VM_FAULT_SIGSEGV handling supportLinus Torvalds1-1/+1
2014-11-13mmu_notifier: call mmu_notifier_invalidate_range() from VMMJoerg Roedel1-2/+2
2014-10-09mm: ksm use pr_err instead of printkPaul McQuade1-2/+2
2014-07-16sched: Remove proliferation of wait_on_bit() action functionsNeilBrown1-7/+1
2014-06-23mm: let mm_find_pmd fix buggy race with THP faultHugh Dickins1-1/+0
2014-03-04mm: close PageTail raceDavid Rientjes1-1/+1
2014-01-23mm: audit/fix non-modular users of module_init in core codePaul Gortmaker1-1/+1
2014-01-23mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGESasha Levin1-6/+6
2014-01-21mm/rmap: use rmap_walk() in page_referenced()Joonsoo Kim1-55/+5
2014-01-21mm/rmap: use rmap_walk() in try_to_munlock()Joonsoo Kim1-50/+0
2014-01-21mm/rmap: use rmap_walk() in try_to_unmap()Joonsoo Kim1-2/+2
2014-01-21mm/rmap: extend rmap_walk_xxx() to cope with different casesJoonsoo Kim1-0/+7
2014-01-21mm/rmap: make rmap_walk to get the rmap_walk_control argumentJoonsoo Kim1-3/+3
2013-11-13ksm: remove redundant __GFP_ZERO from kcallocJoe Perches1-2/+2
2013-09-11mm: replace strict_strtoul() with kstrtoul()Jingoo Han1-3/+3
2013-03-08ksm: fix m68k build: only NUMA needs pfn_to_nidHugh Dickins1-1/+1
2013-02-27hlist: drop the node parameter from iteratorsSasha Levin1-10/+5
2013-02-23ksm: allocate roots when neededHugh Dickins1-23/+49
2013-02-23mm,ksm: FOLL_MIGRATION do migration_entry_waitHugh Dickins1-1/+1
2013-02-23ksm: shrink 32-bit rmap_item back to 32 bytesHugh Dickins1-12/+14
2013-02-23ksm: treat unstable nid like in stable treeHugh Dickins1-10/+9
2013-02-23ksm: add some commentsHugh Dickins1-4/+14
2013-02-23ksm: stop hotremove lockdep warningHugh Dickins1-14/+41
2013-02-23ksm: make !merge_across_nodes migration safeHugh Dickins1-30/+134
2013-02-23ksm: make KSM page migration possibleHugh Dickins1-21/+73
2013-02-23ksm: remove old stable nodes more thoroughlyHugh Dickins1-4/+79
2013-02-23ksm: get_ksm_page lockedHugh Dickins1-10/+13
2013-02-23ksm: reorganize ksm_check_stable_treeHugh Dickins1-16/+22
2013-02-23ksm: trivial tidyupsHugh Dickins1-26/+22
2013-02-23ksm: allow trees per NUMA nodePetr Holasek1-19/+132
2013-02-23mm/ksm.c: use new hashtable implementationSasha Levin1-18/+12
2013-02-23mm: reduce rmap overhead for ex-KSM page copies created on swap faultsJohannes Weiner1-6/+0
2012-12-20ksm: make rmap walks more scalableHugh Dickins1-8/+8
2012-12-16Merge tag 'balancenuma-v11' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-3/+3