aboutsummaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-16userfaultfd: change src_folio after ensuring it's unpinned in UFFDIO_MOVELokesh Gidra1-3/+3
2024-03-12mm/huge_memory: skip invalid debugfs new_order input for folio splitZi Yan1-0/+6
2024-03-12mm/huge_memory: check new folio order when split a folioZi Yan1-0/+3
2024-03-04mm: use folio more widely in __split_huge_pageMatthew Wilcox (Oracle)1-10/+11
2024-03-04mm: huge_memory: enable debugfs to split huge pages to any orderZi Yan1-12/+22
2024-03-04mm: thp: split huge page to any lower order pagesZi Yan1-24/+83
2024-03-04mm: page_owner: add support for splitting to any order in split page_ownerZi Yan1-1/+1
2024-03-04mm: memcg: make memcg huge page split support any order splitZi Yan1-1/+1
2024-03-04mm/page_owner: use order instead of nr in split_page_owner()Zi Yan1-1/+1
2024-03-04mm/memcg: use order instead of nr in split_page_memcg()Zi Yan1-2/+3
2024-03-04mm: support order-1 folios in the page cacheMatthew Wilcox (Oracle)1-4/+15
2024-03-04mm/huge_memory: only split PMD mapping when necessary in unmap_folio()Zi Yan1-2/+5
2024-02-22userfaultfd: use per-vma locks in userfaultfd operationsLokesh Gidra1-2/+3
2024-02-22mm: thp: batch-collapse PMD with set_ptes()Ryan Roberts1-25/+33
2024-02-22userfaultfd: handle zeropage moves by UFFDIO_MOVESuren Baghdasaryan1-44/+61
2024-02-21mm: convert mm_counter_file() to take a folioKefeng Wang1-2/+2
2024-02-21mm: use pfn_swap_entry_to_folio() in zap_huge_pmd()Kefeng Wang1-7/+10
2024-02-21mm: use pfn_swap_entry_folio() in __split_huge_pmd_locked()Kefeng Wang1-2/+2
2024-02-21mm: add pfn_swap_entry_folio()Matthew Wilcox (Oracle)1-1/+1
2024-01-26mm: thp_get_unmapped_area must honour topdown preferenceRyan Roberts1-2/+8
2024-01-25mm: huge_memory: don't force huge page alignment on 32 bitYang Shi1-0/+4
2024-01-25mm/huge_memory: fix folio_set_dirty() vs. folio_mark_dirty()David Hildenbrand1-2/+2
2024-01-09Merge tag 'mm-stable-2024-01-08-15-31' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-71/+385
2024-01-08mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDERKirill A. Shutemov1-1/+1
2023-12-29mm: convert page_try_share_anon_rmap() to folio_try_share_anon_rmap_[pte|pmd]()David Hildenbrand1-4/+5
2023-12-29mm/huge_memory: page_try_dup_anon_rmap() -> folio_try_dup_anon_rmap_pmd()David Hildenbrand1-5/+7
2023-12-29mm/huge_memory: page_remove_rmap() -> folio_remove_rmap_pmd()David Hildenbrand1-12/+14
2023-12-29mm/huge_memory: page_add_anon_rmap() -> folio_add_anon_rmap_pmd()David Hildenbrand1-2/+2
2023-12-29mm/huge_memory: batch rmap operations in __split_huge_pmd_locked()David Hildenbrand1-8/+15
2023-12-29mm/huge_memory: page_add_file_rmap() -> folio_add_file_rmap_pmd()David Hildenbrand1-5/+6
2023-12-29userfaultfd: UFFDIO_MOVE uABIAndrea Arcangeli1-0/+122
2023-12-29mm: memcg: fix split queue list crash when large folio migrationBaolin Wang1-1/+1
2023-12-20mm: thp: introduce multi-size THP sysfs interfaceRyan Roberts1-27/+204
2023-12-12mm: huge_memory: use more folio api in __split_huge_page_tail()Kefeng Wang1-6/+6
2023-12-10mm: huge_memory: batch tlb flush when splitting a pte-mapped THPBaolin Wang1-1/+3
2023-11-15mm: fix for negative counter: nr_file_hugepagesStefan Roesch1-7/+9
2023-10-25mm: huge_memory: use folio_xchg_last_cpupid() in __split_huge_page_tail()Kefeng Wang1-1/+1
2023-10-25mm: huge_memory: use a folio in change_huge_pmd()Kefeng Wang1-6/+7
2023-10-25mm: huge_memory: use folio_last_cpupid() in __split_huge_page_tail()Kefeng Wang1-1/+1
2023-10-25mm: huge_memory: use folio_last_cpupid() in do_huge_pmd_numa_page()Kefeng Wang1-1/+1
2023-10-18mm/thp: fix "mm: thp: kill __transhuge_page_enabled()"Zach O'Keefe1-7/+13
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-16mm: memory: make numa_migrate_prep() to take a folioKefeng Wang1-1/+1
2023-10-16mm: huge_memory: use a folio in do_huge_pmd_numa_page()Kefeng Wang1-16/+13
2023-10-04mm: migrate: convert migrate_misplaced_page() to migrate_misplaced_folio()Kefeng Wang1-1/+1
2023-10-04mm: thp: dynamically allocate the thp-related shrinkersQi Zheng1-24/+43
2023-08-31Merge tag 'x86_shstk_for_6.6-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-5/+6
2023-08-29Merge tag 'mm-stable-2023-08-28-18-26' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-75/+52
2023-08-28Merge tag 'v6.6-vfs.tmpfs' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-2/+4
2023-08-24mm/huge_memory: work on folio->swap instead of page->private when splitting f...David Hildenbrand1-14/+15
2023-08-24mm/swap: stop using page->private on tail pages for THP_SWAPDavid Hildenbrand1-9/+6
2023-08-24merge mm-hotfixes-stable into mm-stable to pick up depended-upon changesAndrew Morton1-1/+1
2023-08-24madvise:madvise_free_huge_pmd(): don't use mapcount() against large folio for...Yin Fengwei1-1/+1
2023-08-21mm: convert split_huge_pages_pid() to use a folioMatthew Wilcox (Oracle)1-11/+10
2023-08-21mm: add large_rmappable page flagMatthew Wilcox (Oracle)1-2/+2
2023-08-21mm: convert prep_transhuge_page() to folio_prep_large_rmappable()Matthew Wilcox (Oracle)1-3/+1
2023-08-21mm: convert free_transhuge_folio() to folio_undo_large_rmappable()Matthew Wilcox (Oracle)1-11/+11
2023-08-21merge mm-hotfixes-stable into mm-stable to pick up depended-upon changesAndrew Morton1-2/+1
2023-08-21mm/gup: reintroduce FOLL_NUMA as FOLL_HONOR_NUMA_FAULTDavid Hildenbrand1-2/+1
2023-08-18mm: change pudp_huge_get_and_clear_full take vm_area_struct as argAneesh Kumar K.V1-1/+1
2023-08-18mmu_notifiers: rename invalidate_range notifierAlistair Popple1-2/+2
2023-08-18mmu_notifiers: don't invalidate secondary TLBs as part of mmu_notifier_invali...Alistair Popple1-21/+4
2023-08-18mm/huge_memory: use RMAP_NONE when calling page_add_anon_rmap()Miaohe Lin1-1/+1
2023-08-18mm: merge folio_has_private()/filemap_release_folio() call pairsDavid Howells1-2/+1
2023-08-09shmem: fix quota lock nesting in huge hole handlingHugh Dickins1-2/+4
2023-07-11mm: Warn on shadow stack memory in wrong vmaRick Edgecombe1-0/+1
2023-07-11mm: Make pte_mkwrite() take a VMARick Edgecombe1-5/+5
2023-06-23mm: remove references to pagevecMatthew Wilcox (Oracle)1-1/+1
2023-06-19mm: ptep_get() conversionRyan Roberts1-2/+2
2023-06-19mm: remove set_compound_page_dtor()Sidhartha Kumar1-1/+1
2023-06-19mm/huge_memory: split huge pmd under one pte_offset_map()Hugh Dickins1-10/+18
2023-06-19mm/mremap: retry if either pte_offset_map_*lock() failsHugh Dickins1-2/+3
2023-06-09THP: avoid lock when check whether THP is in deferred listYin Fengwei1-5/+12
2023-04-21mm: don't check VMA write permissions if the PTE/PMD indicates write permissionsDavid Hildenbrand1-2/+2
2023-04-18mm/huge_memory: conditionally call maybe_mkwrite() and drop pte_wrprotect() i...David Hildenbrand1-3/+2
2023-04-18mm/huge_memory: revert "Partly revert "mm/thp: carry over dirty bit when thp ...David Hildenbrand1-7/+2
2023-04-18mm/migrate: revert "mm/migrate: fix wrongly apply write bit after mkdirty on ...David Hildenbrand1-4/+2
2023-04-18mm/userfaultfd: don't consider uffd-wp bit of writable migration entriesDavid Hildenbrand1-2/+0
2023-04-16sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-4/+15
2023-04-16mm/huge_memory.c: warn with pr_warn_ratelimited instead of VM_WARN_ON_ONCE_FOLIONaoya Horiguchi1-2/+3
2023-04-16mm/userfaultfd: fix uffd-wp handling for THP migration entriesDavid Hildenbrand1-2/+12
2023-04-05mm: remove vmf_insert_pfn_xxx_prot() for huge page-table entriesLorenzo Stoakes1-18/+13
2023-04-05mm, treewide: redefine MAX_ORDER sanelyKirill A. Shutemov1-1/+1
2023-04-05mm: return an ERR_PTR from __filemap_get_folioChristoph Hellwig1-1/+1
2023-04-05mm: don't look at xarray value entries in split_huge_pages_in_fileChristoph Hellwig1-3/+2
2023-03-28mm/thp: rename TRANSPARENT_HUGEPAGE_NEVER_DAX to _UNSUPPORTEDPeter Xu1-6/+2
2023-03-28mm: huge_memory: convert __do_huge_pmd_anonymous_page() to use a folioKefeng Wang1-10/+11
2023-03-07mm/userfaultfd: propagate uffd-wp bit when PTE-mapping the huge zeropageDavid Hildenbrand1-2/+4
2023-02-23Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-87/+89
2023-02-17mm/migrate: fix wrongly apply write bit after mkdirty on sparc64Peter Xu1-2/+4
2023-02-09mm/gup: simplify the external interface functions and consolidate invariantsJason Gunthorpe1-10/+0
2023-02-02mm: fix khugepaged with shmem_enabled=adviseDavid Stevens1-1/+2
2023-02-02mm: convert deferred_split_huge_page() to deferred_split_folio()Matthew Wilcox (Oracle)1-2/+1
2023-02-02mm/huge_memory: convert get_deferred_split_queue() to take a folioMatthew Wilcox (Oracle)1-8/+10
2023-02-02mm/huge_memory: remove page_deferred_list()Matthew Wilcox (Oracle)1-17/+17
2023-02-02mm: move page->deferred_list to folio->_deferred_listMatthew Wilcox (Oracle)1-17/+15
2023-02-02mm: convert is_transparent_hugepage() to use a folioMatthew Wilcox (Oracle)1-3/+5
2023-02-02mm: remove folio_pincount_ptr() and head_compound_pincount()Matthew Wilcox (Oracle)1-2/+2
2023-02-02mm/mmu_notifier: remove unused mmu_notifier_range_update_to_read_only exportAlistair Popple1-2/+2
2023-01-18mm: huge_memory: convert split_huge_pages_all() to use a folioKefeng Wang1-8/+17
2023-01-18mm/thp: check and bail out if page in deferred queue alreadyYin Fengwei1-0/+3
2023-01-18mm: swap: convert mark_page_lazyfree() to folio_mark_lazyfree()Kefeng Wang1-1/+1
2023-01-18mm: huge_memory: convert madvise_free_huge_pmd to use a folioKefeng Wang1-14/+14
2023-01-18mm/uffd: always wr-protect pte in pte|pmd_mkuffd_wp()Peter Xu1-5/+3
2022-12-15Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds1-1/+2
2022-12-13Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-73/+84
2022-12-13Merge tag 'for-6.2/block-2022-12-08' of git://git.kernel.dk/linuxLinus Torvalds1-6/+13
2022-12-11mm: remove VM_FAULT_WRITEDavid Hildenbrand1-1/+1
2022-11-30mm/thp: re-apply mkdirty for small pages after splitPeter Xu1-6/+8
2022-11-30mm/gup: reliable R/O long-term pinning in COW mappingsDavid Hildenbrand1-1/+1
2022-11-30mm: add early FAULT_FLAG_UNSHARE consistency checksDavid Hildenbrand1-3/+0
2022-11-30mm/autonuma: use can_change_(pte|pmd)_writable() to replace savedwriteDavid Hildenbrand1-11/+15
2022-11-30mm/huge_memory: try avoiding write faults when changing PMD protectionDavid Hildenbrand1-2/+36
2022-11-30mm,thp,rmap: clean up the end of __split_huge_pmd_locked()Hugh Dickins1-10/+5
2022-11-30mm,thp,rmap: subpages_mapcount of PTE-mapped subpagesHugh Dickins1-1/+1
2022-11-30mm,thp,rmap: lock_compound_mapcounts() on THP mapcountsHugh Dickins1-2/+1
2022-11-30mm,thp,rmap: simplify compound page mapcount handlingHugh Dickins1-28/+8
2022-11-30Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-3/+6
2022-11-29mm: Add PG_arch_3 page flagPeter Collingbourne1-0/+1
2022-11-29mm: Do not enable PG_arch_2 for all 64-bit architecturesCatalin Marinas1-1/+1
2022-11-09mm: allow multiple error returns in try_grab_page()Logan Gunthorpe1-6/+13
2022-11-08mm: migrate: try again if THP split is failed due to page refcntBaolin Wang1-2/+2
2022-11-08mm/huge_memory: convert split_huge_pages_in_file() to use a folioMatthew Wilcox (Oracle)1-9/+9
2022-11-08Partly revert "mm/thp: carry over dirty bit when thp splits on pmd"Peter Xu1-3/+6
2022-10-28mm: prep_compound_tail() clear page->privateHugh Dickins1-1/+1
2022-10-20mm/huge_memory: do not clobber swp_entry_t during THP splitMel Gorman1-1/+10
2022-10-03mm/shmem: add flag to enforce shmem THP in hugepage_vma_check()Zach O'Keefe1-1/+1
2022-10-03mm/huge_memory: prevent THP_ZERO_PAGE_ALLOC increased twiceLiu Shixin1-1/+1
2022-10-03mm: convert page_get_anon_vma() to folio_get_anon_vma()Matthew Wilcox (Oracle)1-1/+1
2022-10-03huge_memory: convert unmap_page() to unmap_folio()Matthew Wilcox (Oracle)1-7/+6
2022-10-03huge_memory: convert split_huge_page_to_list() to use a folioMatthew Wilcox (Oracle)1-25/+24
2022-10-03huge_memory: convert do_huge_pmd_wp_page() to use a folioMatthew Wilcox (Oracle)1-16/+19
2022-09-26mm/gup: replace FOLL_NUMA by gup_can_follow_protnone()David Hildenbrand1-1/+1
2022-09-26mm: fix the handling Non-LRU pages returned by follow_pageHaiyue Wang1-1/+1
2022-09-26mm/khugepaged: stop using vma linked listMatthew Wilcox (Oracle)1-2/+2
2022-09-26mm/demotion: update node_is_toptier to work with memory tiersAneesh Kumar K.V1-0/+1
2022-09-26mm: multi-gen LRU: groundworkYu Zhao1-1/+2
2022-09-26mm: remember young/dirty bit for page migrationsPeter Xu1-2/+16
2022-09-26mm/thp: carry over dirty bit when thp splits on pmdPeter Xu1-2/+7
2022-09-26Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-4/+2
2022-09-26mm/huge_memory: use pfn_to_online_page() in split_huge_pages_all()Naoya Horiguchi1-4/+2
2022-09-11mm: fix PageAnonExclusive clearing racing with concurrent RCU GUP-fastDavid Hildenbrand1-0/+3
2022-09-11mm: release private data before split THPYin Fengwei1-2/+12
2022-09-11mm: thp: remove redundant pgtable check in set_huge_zero_page()Qi Zheng1-2/+1
2022-09-11memory tiering: hot page selection with hint page fault latencyHuang Ying1-3/+14
2022-09-11mm/khugepaged: record SCAN_PMD_MAPPED when scan_pmd() finds hugepageZach O'Keefe1-16/+2
2022-09-11mm/thp: add flag to enforce sysfs THP in hugepage_vma_check()Zach O'Keefe1-8/+6
2022-08-20mm/gup: fix FOLL_FORCE COW security issue and remove FOLL_COWDavid Hildenbrand1-21/+43
2022-08-05Merge tag 'mm-stable-2022-08-03' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-69/+117
2022-07-17mm/huge_memory: use helper macro IS_ERR_OR_NULL in split_huge_pages_pidMiaohe Lin1-3/+1
2022-07-17mm/huge_memory: comment the subtly logic in __split_huge_pmdMiaohe Lin1-0/+4
2022-07-17mm/huge_memory: correct comment of prep_transhuge_pageMiaohe Lin1-1/+1
2022-07-17mm/huge_memory: minor cleanup for split_huge_pages_allMiaohe Lin1-1/+6
2022-07-17mm/huge_memory: try to free subpage in swapcache when possibleMiaohe Lin1-1/+1
2022-07-17mm/huge_memory: fix comment in zap_huge_pudMiaohe Lin1-6/+1
2022-07-17mm/huge_memory: use helper macro __ATTR_RWMiaohe Lin1-6/+4
2022-07-17mm/huge_memory: use helper function vma_lookup in split_huge_pages_pidMiaohe Lin1-2/+2
2022-07-17mm/huge_memory: rename mmun_start to haddr in remove_migration_pmdMiaohe Lin1-3/+3
2022-07-17mm/huge_memory: use helper touch_pmd in huge_pmd_set_accessedMiaohe Lin1-15/+7
2022-07-17mm/huge_memory: use helper touch_pud in huge_pud_set_accessedMiaohe Lin1-13/+5
2022-07-17mm/huge_memory: fix comment of __pud_trans_huge_lockMiaohe Lin1-3/+3
2022-07-17mm/huge_memory: access vm_page_prot with READ_ONCE in remove_migration_pmdMiaohe Lin1-1/+1
2022-07-17mm/huge_memory: use flush_pmd_tlb_range in move_huge_pmdMiaohe Lin1-1/+1
2022-07-17mm: khugepaged: reorg some khugepaged helpersYang Shi1-2/+2
2022-07-17mm: thp: kill __transhuge_page_enabled()Yang Shi1-11/+40
2022-07-17mm: thp: kill transparent_hugepage_active()Yang Shi1-9/+44
2022-07-17mm: thp: consolidate vma size check to transhuge_vma_suitableYang Shi1-1/+1
2022-07-17mm: handling Non-LRU pages returned by vm_normal_pagesAlex Sierra1-1/+1
2022-07-03mm: shrinkers: provide shrinkers with namesRoman Gushchin1-2/+2
2022-06-29mm: Account dirty folios properly during splitsMatthew Wilcox (Oracle)1-3/+8
2022-06-27docs: rename Documentation/vm to Documentation/mmMike Rapoport1-1/+1
2022-06-23mm: Clear page->private when splitting or migrating a pageMatthew Wilcox (Oracle)1-0/+1
2022-06-09mm/huge_memory: Fix xarray node memory leakMatthew Wilcox (Oracle)1-2/+1
2022-05-26Merge tag 'mm-stable-2022-05-25' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-54/+123
2022-05-19mm: khugepaged: make khugepaged_enter() void functionYang Shi1-2/+2
2022-05-19mm: thp: only regular file could be THP eligibleYang Shi1-9/+2
2022-05-13mm/huge_memory: convert do_huge_pmd_anonymous_page() to use vma_alloc_folio()Matthew Wilcox (Oracle)1-5/+4
2022-05-13mm: avoid unnecessary flush on change_huge_pmd()Nadav Amit1-2/+2
2022-05-13mm/mprotect: do not flush when not required architecturallyNadav Amit1-4/+5
2022-05-13mm/mprotect: use mmu_gatherNadav Amit1-2/+8
2022-05-09mm: create new mm/swap.h header fileNeilBrown1-0/+1
2022-05-09mm/gup: sanity-check with CONFIG_DEBUG_VM that anonymous pages are exclusive ...David Hildenbrand1-0/+3
2022-05-09mm/gup: trigger FAULT_FLAG_UNSHARE when R/O-pinning a possibly shared anonymo...David Hildenbrand1-0/+3
2022-05-09mm: support GUP-triggered unsharing of anonymous pagesDavid Hildenbrand1-1/+9
2022-05-09mm/rmap: fail try_to_migrate() early when setting a PMD migration entry failsDavid Hildenbrand1-3/+5
2022-05-09mm: remember exclusively mapped anonymous pages with PG_anon_exclusiveDavid Hildenbrand1-7/+71
2022-05-09mm/huge_memory: remove outdated VM_WARN_ON_ONCE_PAGE from unmap_page()David Hildenbrand1-2/+0
2022-05-09mm/rmap: use page_move_anon_rmap() when reusing a mapped PageAnon() page excl...David Hildenbrand1-0/+2
2022-05-09mm/rmap: drop "compound" parameter from page_add_new_anon_rmap()David Hildenbrand1-1/+1
2022-05-09mm/rmap: remove do_page_add_anon_rmap()David Hildenbrand1-1/+1
2022-05-09mm/rmap: split page_dup_rmap() into page_dup_file_rmap() and page_try_dup_ano...David Hildenbrand1-19/+8
2022-04-28mm/huge_memory: do not overkill when splitting huge_zero_pageXu Yu1-1/+6
2022-04-07mm/huge_memory: Avoid calling pmd_page() on a non-leaf PMDMatthew Wilcox (Oracle)1-6/+5
2022-03-24mm/huge_memory: remove stale locking logic from __split_huge_pmd()David Hildenbrand1-36/+4
2022-03-24mm/huge_memory: remove stale page_trans_huge_mapcount()David Hildenbrand1-48/+0
2022-03-24mm/huge_memory: streamline COW logic in do_huge_pmd_wp_page()David Hildenbrand1-4/+9
2022-03-24mm/huge_memory: make is_transparent_hugepage() staticMiaohe Lin1-2/+1
2022-03-24mm/migration: add trace events for THP migrationsAnshuman Khandual1-0/+5
2022-03-22Merge tag 'folio-5.18c' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-116/+62