aboutsummaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
AgeCommit message (Expand)AuthorFilesLines
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
2022-03-22memory tiering: skip to scan fast memoryHuang Ying1-9/+21
2022-03-22mm/thp: refix __split_huge_pmd_locked() for migration PMDHugh Dickins1-2/+2
2022-03-22mm: remove unneeded local variable follflagsMiaohe Lin1-3/+1
2022-03-22mm: thp: fix wrong cache flush in remove_migration_pmd()Muchun Song1-1/+2
2022-03-21mm/readahead: Align file mappings for non-DAXWilliam Kucharski1-4/+1
2022-03-21mm: Turn can_split_huge_page() into can_split_folio()Matthew Wilcox (Oracle)1-7/+8
2022-03-21mm/rmap: Convert rmap_walk() to take a folioMatthew Wilcox (Oracle)1-1/+1
2022-03-21mm/migrate: Convert remove_migration_ptes() to foliosMatthew Wilcox (Oracle)1-11/+13
2022-03-21mm/rmap: Convert try_to_migrate() to foliosMatthew Wilcox (Oracle)1-2/+2
2022-03-21mm/rmap: Convert try_to_unmap() to take a folioMatthew Wilcox (Oracle)1-1/+2
2022-03-21mm/huge_memory: Convert __split_huge_pmd() to take a folioMatthew Wilcox (Oracle)1-23/+23
2022-03-21mm: Add folio_mapcount()Matthew Wilcox (Oracle)1-24/+0
2022-02-17mm/munlock: maintain page->mlock_count while unevictableHugh Dickins1-1/+4
2022-02-17mm/munlock: rmap call mlock_vma_page() munlock_vma_page()Hugh Dickins1-9/+8
2022-02-17mm/munlock: delete FOLL_MLOCK and FOLL_POPULATEHugh Dickins1-33/+0
2022-01-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-21/+11
2022-01-15mm: remove the total_mapcount argument from page_trans_huge_mapcount()Matthew Wilcox (Oracle)1-20/+10
2022-01-15mm: remove last argument of reuse_swap_page()Matthew Wilcox (Oracle)1-1/+1
2022-01-08mm: Use multi-index entries in the page cacheMatthew Wilcox (Oracle)1-4/+14
2021-11-01Merge tag 'folio-5.16' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-3/+4
2021-10-28mm: filemap: check if THP has hwpoisoned subpage for PMD page faultYang Shi1-0/+2
2021-10-18mm/thp: decrease nr_thps in file's mapping on THP splitMarek Szyprowski1-2/+4
2021-09-27mm/memcg: Add folio_lruvec_lock() and similar functionsMatthew Wilcox (Oracle)1-2/+3
2021-09-27mm/memcg: Convert mem_cgroup_charge() to take a folioMatthew Wilcox (Oracle)1-1/+1
2021-09-03mm,do_huge_pmd_numa_page: remove unnecessary TLB flushing codeHuang Ying1-26/+0
2021-09-03huge tmpfs: fix split_huge_page() after FALLOC_FL_KEEP_SIZEHugh Dickins1-2/+4
2021-07-11mm/rmap: fix comments left over from recent changesHugh Dickins1-1/+1
2021-07-01mm/rmap: split migration into its own functionAlistair Popple1-6/+10
2021-07-01mm/swapops: rework swap entry manipulation codeAlistair Popple1-8/+18
2021-07-01mm: remove special swap entry functionsAlistair Popple1-3/+3
2021-06-30mm/thp: fix strncpy warningMatthew Wilcox (Oracle)1-1/+1
2021-06-30mm/thp: remap_page() is only needed on anonymous THPHugh Dickins1-0/+5
2021-06-30mm: thp: skip make PMD PROT_NONE if THP migration is not supportedYang Shi1-0/+4
2021-06-30mm: thp: refactor NUMA fault handlingYang Shi1-101/+44
2021-06-30mm: memory: add orig_pmd to struct vm_faultYang Shi1-3/+6
2021-06-30mm/userfaultfd: fix uffd-wp special cases for fork()Peter Xu1-13/+14
2021-06-30mm/thp: simplify copying of huge zero page pmd when forkPeter Xu1-6/+3
2021-06-30mm/huge_memory.c: don't discard hugepage if other processes are mapping itMiaohe Lin1-1/+1
2021-06-30mm/huge_memory.c: remove unnecessary tlb_remove_page_size() for huge zero pmdMiaohe Lin1-3/+0
2021-06-30mm/huge_memory.c: add missing read-only THP checking in transparent_hugepage_...Miaohe Lin1-1/+10
2021-06-30mm/huge_memory.c: use page->deferred_listMiaohe Lin1-2/+2
2021-06-16mm: thp: replace DEBUG_VM BUG with VM_WARN when unmap fails for splitYang Shi1-17/+7
2021-06-16mm/thp: try_to_unmap() use TTU_SYNC for safe splittingHugh Dickins1-1/+1
2021-06-16mm/thp: make is_huge_zero_pmd() safe and quickerHugh Dickins1-1/+4
2021-06-16mm/thp: fix __split_huge_pmd_locked() on shmem migration entryHugh Dickins1-9/+18
2021-05-07mm: fix typos in commentsIngo Molnar1-3/+3
2021-05-05mm: vmscan: consolidate shrinker_maps handling codeYang Shi1-2/+2
2021-05-05mm: huge_memory: debugfs for file-backed THP splitZi Yan1-1/+89
2021-05-05mm: huge_memory: a new debugfs interface for splitting THP testsZi Yan1-8/+147
2021-05-05mm/huge_memory.c: use helper function migration_entry_to_page()Miaohe Lin1-2/+2
2021-05-05mm/huge_memory.c: remove redundant PageCompound() checkMiaohe Lin1-1/+1
2021-05-05mm/huge_memory.c: rework the function do_huge_pmd_numa_page() slightlyMiaohe Lin1-6/+5
2021-05-05mm/huge_memory.c: make get_huge_zero_page() return boolMiaohe Lin1-4/+4
2021-05-05mm/huge_memory.c: rework the function vma_adjust_trans_huge()Miaohe Lin1-25/+19
2021-05-05mm/huge_memory.c: remove unnecessary local variable ret2Miaohe Lin1-5/+3
2021-03-13mm/memcg: rename mem_cgroup_split_huge_fixup to split_page_memcg and add nr_p...Zhou Guanghui1-1/+1
2021-03-13mm: introduce page_needs_cow_for_dma() for deciding whether cowPeter Xu1-6/+2
2021-02-26mm,thp,shmem: limit shmem THP alloc gfp_maskRik van Riel1-3/+3
2021-02-24mm/pmem: avoid inserting hugepage PTE entry with fsdax if hugepage support is...Aneesh Kumar K.V1-1/+5
2021-02-24mm/huge_memory.c: remove unused return value of set_huge_zero_page()Miaohe Lin1-3/+2
2021-02-24mm/huge_memory.c: update tlb entry if pmd is changedBibo Mao1-0/+2
2021-02-24mm: memcontrol: convert NR_SHMEM_THPS account to pagesMuchun Song1-1/+2
2021-02-24mm: memcontrol: convert NR_FILE_THPS account to pagesMuchun Song1-1/+4
2021-02-24mm: memcontrol: convert NR_ANON_THPS account to pagesMuchun Song1-1/+2
2021-02-24mm/filemap: pass a sleep state to put_and_wait_on_page_lockedMatthew Wilcox (Oracle)1-2/+2
2021-02-05mm: thp: fix MADV_REMOVE deadlock on shmem THPHugh Dickins1-14/+23
2020-12-15mm: fix some spelling mistakes in commentsHaitao Shi1-1/+1
2020-12-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-13/+32
2020-12-15mm/lru: replace pgdat lru_lock with lruvec lockAlex Shi1-7/+4
2020-12-15mm/thp: narrow lru lockingAlex Shi1-12/+13
2020-12-15mm/thp: simplify lru_add_page_tail()Alex Shi1-14/+6
2020-12-15mm/thp: use head for head page in lru_add_page_tail()Alex Shi1-12/+11
2020-12-15mm/thp: move lru_add_page_tail() to huge_memory.cAlex Shi1-0/+30
2020-12-15Merge tag 'net-next-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-2/+2
2020-12-15mm: huge_memory: convert remaining use of sprintf to sysfs_emit and neateningJoe Perches1-21/+31
2020-12-15mm: use sysfs_emit for struct kobject * usesJoe Perches1-12/+16
2020-12-15mm/rmap: always do TTU_IGNORE_ACCESSShakeel Butt1-1/+1
2020-12-15mm: memcontrol: add file_thp, shmem_thp to memory.statJohannes Weiner1-2/+2
2020-12-04Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-2/+2
2020-12-02mm: memcontrol: Use helpers to read page's memcg dataRoman Gushchin1-2/+2
2020-11-22mm/userfaultfd: do not access vma->vm_mm after calling handle_userfault()Gerald Schaefer1-5/+4
2020-10-16mm: fix a race during THP splittingHuang Ying1-6/+7
2020-10-16mm/huge_memory: fix can_split_huge_page assumption of THP sizeMatthew Wilcox (Oracle)1-2/+2
2020-10-16mm/huge_memory: fix page_trans_huge_mapcount assumption of THP sizeMatthew Wilcox (Oracle)1-2/+2
2020-10-16mm/huge_memory: fix split assumption of page sizeKirill A. Shutemov1-7/+8
2020-10-16mm/huge_memory: fix total_mapcount assumption of page sizeKirill A. Shutemov1-4/+5
2020-10-16mm/page_owner: change split_page_owner to take a countMatthew Wilcox (Oracle)1-1/+1
2020-10-13mm/mmap: leave adjust_next as virtual address instead of page frame numberWei Yang1-2/+2
2020-10-12Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-0/+3
2020-09-27mm/thp: Split huge pmds/puds if they're pinned when fork()Peter Xu1-0/+28
2020-09-19mm/thp: fix __split_huge_pmd_locked() for migration PMDRalph Campbell1-19/+23
2020-09-04Merge branch 'simplify-do_wp_page'Linus Torvalds1-3/+4
2020-09-04mm/gup: Remove enfornced COW mechanismPeter Xu1-3/+4
2020-09-04mm: Preserve the PG_arch_2 flag in __split_huge_page_tail()Catalin Marinas1-0/+3
2020-08-12mm: thp: remove debug_cow switchYang Shi1-21/+0
2020-08-12mm/vmscan: protect the workingset on anonymous LRUJoonsoo Kim1-1/+1
2020-08-07mm: thp: replace HTTP links with HTTPS onesAlexander A. Klimov1-2/+2
2020-08-07mm/mremap: start addresses are properly alignedWei Yang1-3/+0
2020-08-07mm/mremap: it is sure to have enough space when extent meets requirementWei Yang1-5/+2
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-2/+2
2020-06-09mmap locking API: convert mmap_sem API commentsMichel Lespinasse1-2/+2
2020-06-05Merge tag 'powerpc-5.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-2/+2
2020-06-04mm: use false for bool variableZou Wei1-1/+1
2020-06-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-239/+31
2020-06-03mm: thp: don't need to drain lru cache when splitting and mlocking THPYang Shi1-7/+0
2020-06-03mm: memcontrol: delete unused lrucare handlingJohannes Weiner1-1/+1
2020-06-03mm: memcontrol: convert anon and file-thp to new mem_cgroup_charge() APIJohannes Weiner1-6/+3
2020-06-03mm: memcontrol: switch to native NR_ANON_THPS counterJohannes Weiner1-1/+3
2020-06-03mm: memcontrol: switch to native NR_ANON_MAPPED counterJohannes Weiner1-1/+1
2020-06-03mm: memcontrol: drop @compound parameter from memcg charging APIJohannes Weiner1-4/+4
2020-06-03thp: change CoW semantics for anon-THPKirill A. Shutemov1-225/+25
2020-06-03mm: thp: make the THP mapcount atomic against __split_huge_pmd_locked()Andrea Arcangeli1-3/+28
2020-06-02gup: document and work around "COW can break either way" issueLinus Torvalds1-4/+3
2020-05-05mm: change pmdp_huge_get_and_clear_full take vm_area_struct as argAneesh Kumar K.V1-2/+2
2020-04-07userfaultfd: wp: support swap and page migrationPeter Xu1-0/+3
2020-04-07userfaultfd: wp: drop _PAGE_UFFD_WP properly when forkPeter Xu1-0/+8
2020-04-07userfaultfd: wp: apply _PAGE_UFFD_WP bitPeter Xu1-1/+17
2020-04-07mm: merge parameters for change_protection()Peter Xu1-1/+2
2020-04-07mm: remove CONFIG_TRANSPARENT_HUGE_PAGECACHEMatthew Wilcox (Oracle)1-1/+1
2020-04-07mm, thp: track fallbacks due to failed memcg charges separatelyDavid Rientjes1-0/+2
2020-04-04Merge tag 'drm-next-2020-04-03-1' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-9/+35
2020-04-02mm/gup: track FOLL_PIN pagesJohn Hubbard1-6/+23
2020-03-24mm: Add vmf_insert_pfn_xxx_prot() for huge page-table entriesThomas Hellstrom (VMware)1-6/+32
2020-03-24mm: Introduce vma_is_special_hugeThomas Hellstrom (VMware)1-3/+3
2020-03-06mm: fix possible PMD dirty bit lost in set_pmd_migration_entry()Huang Ying1-2/+1
2020-01-31Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-26/+18
2020-01-31mm, thp: fix defrag setting if newline is not usedDavid Rientjes1-16/+8
2020-01-31mm/huge_memory.c: reduce critical section protected by split_queue_lockWei Yang1-1/+1
2020-01-31mm/huge_memory.c: use head to emphasize the purpose of pageWei Yang1-8/+8
2020-01-31mm/huge_memory.c: use head to check huge zero pageWei Yang1-1/+1
2020-01-31Merge tag 'kvm-5.6-1' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds1-0/+11
2020-01-27mm: thp: KVM: Explicitly check for THP when populating secondary MMUSean Christopherson1-0/+11
2020-01-13mm/huge_memory.c: thp: fix conflict of above-47bit hint address and PMD align...Kirill A. Shutemov1-14/+24
2019-12-01mm/huge_memory.c: split_huge_pages_fops should be defined with DEFINE_DEBUGFS...zhong jiang1-1/+1
2019-10-19mm/thp: fix node page state in split_huge_page_to_list()Kirill A. Shutemov1-2/+7
2019-09-28Merge branch 'hugepage-fallbacks' (hugepatch patches from David Rientjes)Linus Torvalds1-31/+20
2019-09-28Revert "Revert "Revert "mm, thp: consolidate THP gfp handling into alloc_huge...David Rientjes1-14/+13
2019-09-28Revert "Revert "mm, thp: restore node-local hugepage allocations""David Rientjes1-26/+16
2019-09-24mm: thp: make deferred split shrinker memcg awareYang Shi1-9/+53
2019-09-24mm: thp: extract split_queue_* into a structYang Shi1-20/+25
2019-09-24mm: page cache: store only head pages in i_pagesMatthew Wilcox (Oracle)1-2/+20
2019-08-24mm, page_owner: handle THP splits correctlyVlastimil Babka1-0/+4
2019-08-13Revert "mm, thp: restore node-local hugepage allocations"Andrea Arcangeli1-16/+26
2019-08-13Revert "Revert "mm, thp: consolidate THP gfp handling into alloc_hugepage_dir...Andrea Arcangeli1-13/+14
2019-07-18mm: thp: fix false negative of shmem vma's THP eligibilityYang Shi1-2/+7
2019-07-18mm: thp: make transhuge_vma_suitable available for anonymous THPYang Shi1-1/+1
2019-07-05Revert "mm: page cache: store only head pages in i_pages"Linus Torvalds1-3/+0
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 499Thomas Gleixner1-3/+1
2019-05-14mm/huge_memory.c: make __thp_get_unmapped_area staticBharath Vedartham1-1/+1