aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
AgeCommit message (Expand)AuthorFilesLines
2023-06-19mm/hugetlb: use a folio in hugetlb_fault()ZhangPeng1-10/+10
2023-06-19mm/hugetlb: use a folio in hugetlb_wp()ZhangPeng1-16/+16
2023-06-19mm/hugetlb: use a folio in copy_hugetlb_page_range()ZhangPeng1-11/+11
2023-06-09mm/gup: remove vmas array from internal GUP functionsLorenzo Stoakes1-14/+10
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-56/+80
2023-04-27Merge tag 'sysctl-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-3/+48
2023-04-21mm/hugetlb: fix uffd-wp bit lost when unsharing happensPeter Xu1-2/+5
2023-04-21mm/hugetlb: fix uffd-wp during fork()Peter Xu1-9/+15
2023-04-18mm: hwpoison: support recovery from HugePage copy-on-write faultsLiu Shixin1-3/+14
2023-04-18mm: convert copy_user_huge_page() to copy_user_large_folio()ZhangPeng1-6/+5
2023-04-18userfaultfd: convert mfill_atomic_hugetlb() to use a folioZhangPeng1-13/+13
2023-04-18userfaultfd: convert copy_huge_page_from_user() to copy_folio_from_user()ZhangPeng1-3/+2
2023-04-18hugetlb: remove PageHeadHuge()Matthew Wilcox (Oracle)1-7/+11
2023-04-16sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-2/+12
2023-04-05mm: userfaultfd: combine 'mode' and 'wp_copy' argumentsAxel Rasmussen1-6/+6
2023-04-05mm: userfaultfd: don't pass around both mm and vmaAxel Rasmussen1-2/+2
2023-04-05mm: userfaultfd: rename functions for clarity + consistencyAxel Rasmussen1-10/+10
2023-04-05mm, treewide: redefine MAX_ORDER sanelyKirill A. Shutemov1-2/+2
2023-04-05mm: return an ERR_PTR from __filemap_get_folioChristoph Hellwig1-2/+4
2023-04-05mm/hugetlb: fix uffd wr-protection for CoW optimization pathPeter Xu1-2/+12
2023-03-20mm: hugetlb: move hugeltb sysctls to its own fileKefeng Wang1-3/+48
2023-02-20mm: hugetlb: change to return bool for isolate_hugetlb()Baolin Wang1-5/+8
2023-02-13mm/hugetlb: convert hugetlb_wp() to take in a folioSidhartha Kumar1-16/+16
2023-02-13mm/hugetlb: convert hugetlb_add_to_page_cache to take in a folioSidhartha Kumar1-5/+4
2023-02-13mm/hugetlb: convert restore_reserve_on_error to take in a folioSidhartha Kumar1-11/+10
2023-02-13mm/hugetlb: convert hugetlb fault paths to use alloc_hugetlb_folio()Sidhartha Kumar1-100/+101
2023-02-13mm/hugetlb: convert putback_active_hugepage to take in a folioSidhartha Kumar1-4/+4
2023-02-13mm/hugetlb: convert hugetlbfs_pagecache_present() to foliosSidhartha Kumar1-9/+7
2023-02-13mm/hugetlb: convert hugetlb_install_page to foliosSidhartha Kumar1-7/+7
2023-02-13mm/hugetlb: convert demote_free_huge_page to foliosSidhartha Kumar1-18/+17
2023-02-13mm/hugetlb: convert restore_reserve_on_error() to foliosSidhartha Kumar1-13/+14
2023-02-13mm/hugetlb: convert alloc_migrate_huge_page to foliosSidhartha Kumar1-9/+9
2023-02-13mm/hugetlb: increase use of folios in alloc_huge_page()Sidhartha Kumar1-17/+16
2023-02-13mm/hugetlb: convert alloc_surplus_huge_page() to foliosSidhartha Kumar1-13/+14
2023-02-13mm/hugetlb: convert dequeue_hugetlb_page functions to foliosSidhartha Kumar1-26/+30
2023-02-13mm/hugetlb: convert __update_and_free_page() to foliosSidhartha Kumar1-6/+6
2023-02-13mm/hugetlb: convert isolate_hugetlb to foliosSidhartha Kumar1-8/+8
2023-02-09mm: replace VM_LOCKED_CLEAR_MASK with VM_LOCKED_MASKSuren Baghdasaryan1-2/+2
2023-02-02mm/hugetlb: convert get_hwpoison_huge_page() to foliosSidhartha Kumar1-5/+5
2023-02-02mm/memory-failure: convert hugetlb_clear_page_hwpoison to foliosSidhartha Kumar1-1/+1
2023-02-02hugetlb: remove uses of compound_dtor and compound_nrMatthew Wilcox (Oracle)1-5/+7
2023-02-02hugetlb: remove uses of folio_mapcount_ptrMatthew Wilcox (Oracle)1-2/+2
2023-02-02mm: convert head_subpages_mapcount() into folio_nr_pages_mapped()Matthew Wilcox (Oracle)1-2/+2
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-6/+6
2023-01-18mm/uffd: detect pgtable allocation failuresPeter Xu1-2/+4
2023-01-18mm/mprotect: use long for page accountings and retvalPeter Xu1-2/+2
2023-01-18hugetlb: initialize variable to avoid compiler warningMike Kravetz1-1/+1
2023-01-18mm/hugetlb: introduce hugetlb_walk()Peter Xu1-18/+13
2023-01-18mm/hugetlb: make follow_hugetlb_page() safe to pmd unsharePeter Xu1-0/+7
2023-01-18mm/hugetlb: make hugetlb_follow_page_mask() safe to pmd unsharePeter Xu1-1/+4
2023-01-18mm/hugetlb: move swap entry handling into vma lock when faultedPeter Xu1-21/+16
2023-01-18mm/hugetlb: don't wait for migration entry during follow pagePeter Xu1-11/+0
2023-01-18hugetlb: update vma flag check for hugetlb vma lockMike Kravetz1-2/+1
2023-01-18mm/uffd: always wr-protect pte in pte|pmd_mkuffd_wp()Peter Xu1-2/+2
2023-01-18mm: move folio_set_compound_order() to mm/internal.hSidhartha Kumar1-3/+3
2023-01-18mm: fix a few rare cases of using swapin error pte markerPeter Xu1-0/+3
2023-01-11mm: update mmap_sem comments to refer to mmap_lockLorenzo Stoakes1-2/+2
2023-01-11mm/hugetlb: pre-allocate pgtable pages for uffd wr-protectsPeter Xu1-2/+11
2023-01-11hugetlb: unshare some PMDs when splitting VMAsJames Houghton1-9/+35
2023-01-11mm/hugetlb: fix uffd-wp handling for migration entries in hugetlb_change_prot...David Hildenbrand1-8/+9
2023-01-11mm/hugetlb: fix PTE marker handling in hugetlb_change_protection()David Hildenbrand1-14/+7
2022-12-21hugetlb: really allocate vma lock for all sharable vmasMike Kravetz1-185/+148
2022-12-15Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds1-1/+4
2022-12-13Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-406/+342
2022-12-13Merge tag 'for-6.2/block-2022-12-08' of git://git.kernel.dk/linuxLinus Torvalds1-10/+13
2022-12-12mm/hugetlb: set head flag before setting compound_order in __prep_compound_gi...Sidhartha Kumar1-2/+2
2022-12-11mm/hugetlb: change hugetlb allocation functions to return a folioSidhartha Kumar1-70/+64
2022-12-11mm/hugetlb: convert hugetlb prep functions to foliosSidhartha Kumar1-33/+30
2022-12-11mm/hugetlb: convert free_gigantic_page() to foliosSidhartha Kumar1-12/+17
2022-12-11mm/hugetlb: convert enqueue_huge_page() to foliosSidhartha Kumar1-11/+11
2022-12-11mm/hugetlb: convert add_hugetlb_page() to folios and add hugetlb_cma_folio()Sidhartha Kumar1-21/+21
2022-12-11mm/hugetlb: convert update_and_free_page() to foliosSidhartha Kumar1-14/+16
2022-12-11mm/hugetlb: convert remove_hugetlb_page() to foliosSidhartha Kumar1-23/+25
2022-12-11mm/hugetlb: convert dissolve_free_huge_page() to foliosSidhartha Kumar1-10/+10
2022-12-11mm/hugetlb: convert destroy_compound_gigantic_page() to foliosSidhartha Kumar1-22/+21
2022-12-11mm: add folio dtor and order setter functionsSidhartha Kumar1-3/+1
2022-11-30mm/gup: reliable R/O long-term pinning in COW mappingsDavid Hildenbrand1-3/+4
2022-11-30mm: add early FAULT_FLAG_UNSHARE consistency checksDavid Hildenbrand1-5/+0
2022-11-30hugetlb: remove duplicate mmu notificationsMike Kravetz1-9/+9
2022-11-30mm,thp,rmap: simplify compound page mapcount handlingHugh Dickins1-0/+2
2022-11-30mm/hugetlb: convert move_hugetlb_state() to foliosSidhartha Kumar1-10/+12
2022-11-30mm/hugetlb_cgroup: convert hugetlb_cgroup_uncharge_page() to foliosSidhartha Kumar1-6/+9
2022-11-30mm/hugetlb: convert free_huge_page to foliosSidhartha Kumar1-13/+14
2022-11-30mm/hugetlb: convert isolate_or_dissolve_huge_page to foliosSidhartha Kumar1-7/+6
2022-11-30mm/hugetlb_cgroup: convert hugetlb_cgroup_migrate to foliosSidhartha Kumar1-1/+1
2022-11-30mm/hugetlb_cgroup: convert set_hugetlb_cgroup*() to foliosSidhartha Kumar1-14/+19
2022-11-30mm/hugetlb_cgroup: convert hugetlb_cgroup_from_page() to foliosSidhartha Kumar1-2/+3
2022-11-30Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-12/+23
2022-11-30hugetlb: don't delete vma_lock in hugetlb MADV_DONTNEED processingMike Kravetz1-11/+16
2022-11-22hugetlb: fix __prep_compound_gigantic_page page flag settingMike Kravetz1-1/+3
2022-11-09mm: introduce FOLL_PCI_P2PDMA to gate getting PCI P2PDMA pagesLogan Gunthorpe1-2/+4
2022-11-09mm: allow multiple error returns in try_grab_page()Logan Gunthorpe1-8/+9
2022-11-09mm/gup: Add FOLL_INTERRUPTIBLEPeter Xu1-1/+4
2022-11-08mm,hwpoison,hugetlb,memory_hotplug: hotremove memory section with hwpoisoned ...Naoya Horiguchi1-4/+5
2022-11-08Revert "mm/uffd: fix warning without PTE_MARKER_UFFD_WP compiled in"Peter Xu1-4/+0
2022-11-08mm/hugetlb: unify clearing of RestoreReserve for private pagesPeter Xu1-10/+4
2022-11-08hugetlb: simplify hugetlb handling in follow_page_maskMike Kravetz1-116/+56
2022-11-08hugetlbfs: don't delete error page from pagecacheJames Houghton1-0/+4
2022-10-20hugetlb: fix memory leak associated with vma_lock structureMike Kravetz1-8/+27
2022-10-20mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pagesRik van Riel1-1/+1
2022-10-14Merge tag 'mm-stable-2022-10-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-12/+60
2022-10-12mm/hugetlb: use hugetlb_pte_stable in migration race checkPeter Xu1-4/+3
2022-10-12mm/hugetlb: fix race condition of uffd missing/minor handlingPeter Xu1-7/+52
2022-10-12mm/uffd: fix warning without PTE_MARKER_UFFD_WP compiled inPeter Xu1-0/+4
2022-10-12mm/hugetlb.c: make __hugetlb_vma_unlock_write_put() staticAndrew Morton1-1/+1
2022-10-12Merge tag 'mm-hotfixes-stable-2022-10-11' of git://git.kernel.org/pub/scm/lin...Linus Torvalds1-14/+13
2022-10-11mm/hugetlb: fix races when looking up a CONT-PTE/PMD size hugetlb pageBaolin Wang1-14/+13
2022-10-07hugetlb: allocate vma lock for all sharable vmasMike Kravetz1-35/+15
2022-10-07hugetlb: take hugetlb vma_lock when clearing vma_lock->vma pointerMike Kravetz1-10/+32
2022-10-07hugetlb: fix vma lock handling during split vma and range unmappingMike Kravetz1-16/+27
2022-10-03mm/hugetlb: add available_huge_pages() funcXin Hao1-5/+9
2022-10-03mm: hugetlb: fix UAF in hugetlb_handle_userfaultLiu Shixin1-20/+17
2022-10-03hugetlb: freeze allocated pages before creating hugetlb pagesMike Kravetz1-64/+38
2022-10-03hugetlb: clean up code checking for fault/truncation racesMike Kravetz1-21/+3
2022-10-03hugetlb: use new vma_lock for pmd sharing synchronizationMike Kravetz1-9/+93
2022-10-03hugetlb: add vma based lock for pmd sharingMike Kravetz1-17/+190
2022-10-03hugetlb: rename vma_shareable() and refactor codeMike Kravetz1-6/+13
2022-10-03hugetlb: rename remove_huge_page to hugetlb_delete_from_page_cacheMike Kravetz1-4/+4
2022-10-03hugetlbfs: revert use i_mmap_rwsem for more pmd sharing synchronizationMike Kravetz1-65/+12
2022-10-03hugetlbfs: revert use i_mmap_rwsem to address page fault/truncate raceMike Kravetz1-11/+11
2022-10-03mm/hugetlb: remove unnecessary 'NULL' values from pointerXU pengfei1-2/+2
2022-10-03mm: hugetlb: eliminate memory-less nodes handlingMuchun Song1-41/+29
2022-10-03mm: hugetlb: simplify per-node sysfs creation and removalMuchun Song1-12/+23
2022-10-03mm: use nth_page instead of mem_map_offset mem_map_nextCheng Li1-12/+17
2022-10-03mm/hugetlb.c: remove unnecessary initialization of local `err'Li zeming1-1/+1
2022-09-26Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-6/+8
2022-09-26mm/hugetlb: correct demote page offset logicDoug Berger1-6/+8
2022-09-11hugetlb: remove meaningless BUG_ON(huge_pte_none())Miaohe Lin1-1/+0
2022-09-11hugetlb: add comment for subtle SetHPageVmemmapOptimized()Miaohe Lin1-0/+4
2022-09-11hugetlb: kill hugetlbfs_pagecache_page()Miaohe Lin1-14/+1
2022-09-11hugetlb: pass NULL to kobj_to_hstate() if nid is unusedMiaohe Lin1-4/+2
2022-09-11hugetlb: use helper {huge_pte|pmd}_lock()Miaohe Lin1-2/+1
2022-09-11hugetlb: use sizeof() to get the array sizeMiaohe Lin1-2/+2
2022-09-11hugetlb: use LIST_HEAD() to define a list headMiaohe Lin1-5/+2
2022-09-11hugetlb: Use helper macro SZ_1KMiaohe Lin1-1/+1
2022-09-11hugetlb: make hugetlb_cma_check() staticMiaohe Lin1-1/+9
2022-09-11mm/hugetlb: make detecting shared pte more reliableMiaohe Lin1-13/+8
2022-09-11mm/hugetlb: fix sysfs group leak in hugetlb_unregister_node()Miaohe Lin1-7/+18
2022-09-11mm/hugetlb: fix missing call to restore_reserve_on_error()Miaohe Lin1-3/+8
2022-09-11mm/hugetlb: fix WARN_ON(!kobj) in sysfs_create_group()Miaohe Lin1-0/+1
2022-09-11mm/hugetlb: fix incorrect update of max_huge_pagesMiaohe Lin1-1/+2
2022-09-11mm/hugetlb: add dedicated func to get 'allowed' nodemask for current processFeng Tang1-4/+20
2022-08-28mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pteMiaohe Lin1-1/+1
2022-08-20mm/hugetlb: support write-faults in shared mappingsDavid Hildenbrand1-7/+19
2022-08-08mm, hwpoison, hugetlb: support saving mechanism of raw error pagesNaoya Horiguchi1-9/+14
2022-08-08mm/hugetlb: make pud_huge() and follow_huge_pud() aware of non-present pud entryNaoya Horiguchi1-2/+30
2022-08-08mm/hugetlb: check gigantic_page_runtime_supported() in return_unused_surplus_...Naoya Horiguchi1-2/+1
2022-08-08mm: hugetlb_vmemmap: improve hugetlb_vmemmap code readabilityMuchun Song1-7/+8
2022-08-05Merge tag 'mm-stable-2022-08-03' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-72/+97
2022-08-03Merge tag 'folio-6.0' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-4/+10
2022-07-18hugetlb: fix memoryleak in hugetlb_mcopy_atomic_pteMiaohe Lin1-0/+1
2022-07-18mm/hugetlb: separate path for hwpoison entry in copy_hugetlb_page_range()Naoya Horiguchi1-2/+7
2022-07-17mm, hugetlb: skip irrelevant nodes in show_free_areas()Gang Li1-10/+8
2022-07-17hugetlb: do not update address in huge_pmd_unshareMike Kravetz1-27/+17
2022-07-17hugetlb: skip to end of PT page mapping when pte not presentMike Kravetz1-5/+51
2022-07-17mm: rename is_pinnable_page() to is_longterm_pinnable_page()Alex Sierra1-1/+1
2022-07-03mm: hugetlb: kill set_huge_swap_pte_at()Qi Zheng1-5/+3
2022-07-03mm: hugetlb: remove minimum_order variableMuchun Song1-11/+7
2022-07-03mm/hugetlb: remove unnecessary huge_ptep_set_access_flags() in hugetlb_mcopy_...Baolin Wang1-2/+0
2022-07-03mm/migration: fix potential pte_unmap on an not mapped pteMiaohe Lin1-2/+2
2022-07-03mm/migration: return errno when isolate_huge_page failedMiaohe Lin1-6/+5
2022-06-29hugetlb: Convert huge_add_to_page_cache() to use a folioMatthew Wilcox (Oracle)1-4/+10
2022-06-27docs: rename Documentation/vm to Documentation/mmMike Rapoport1-3/+3
2022-06-01delayacct: track delays from write-protect copyYang Yang1-0/+8
2022-05-27Merge tag 'mm-hotfixes-stable-2022-05-27' of git://git.kernel.org/pub/scm/lin...Linus Torvalds1-1/+8
2022-05-27hugetlb: fix huge_pmd_unshare address updateMike Kravetz1-1/+8
2022-05-13mm/hugetlb: handle uffd-wp during fork()Peter Xu1-14/+28
2022-05-13mm/hugetlb: only drop uffd-wp special pte if requiredPeter Xu1-8/+25
2022-05-13mm/hugetlb: allow uffd wr-protect none ptesPeter Xu1-4/+24
2022-05-13mm/hugetlb: handle pte markers in page faultsPeter Xu1-4/+14
2022-05-13mm/hugetlb: handle UFFDIO_WRITEPROTECTPeter Xu1-1/+12
2022-05-13mm/hugetlb: take care of UFFDIO_COPY_MODE_WPPeter Xu1-6/+23
2022-05-13mm/hugetlb: hook page faults for uffd write protectionPeter Xu1-0/+20
2022-05-13mm: hugetlb: considering PMD sharing when flushing cache/TLBsBaolin Wang1-2/+15
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-3/+24
2022-05-09mm: support GUP-triggered unsharing of anonymous pagesDavid Hildenbrand1-21/+35
2022-05-09mm/gup: disallow follow_page(FOLL_PIN)David Hildenbrand1-3/+5
2022-05-09mm: remember exclusively mapped anonymous pages with PG_anon_exclusiveDavid Hildenbrand1-4/+11
2022-05-09mm/page-flags: reuse PG_mappedtodisk as PG_anon_exclusive for PageAnon() pagesDavid Hildenbrand1-0/+2
2022-05-09mm/rmap: split page_dup_rmap() into page_dup_file_rmap() and page_try_dup_ano...David Hildenbrand1-7/+9
2022-05-09mm/hugetlb: take src_mm->write_protect_seq in copy_hugetlb_page_range()David Hildenbrand1-2/+6
2022-04-29mm: hugetlb: add missing cache flushing in hugetlb_unshare_all_pmds()Baolin Wang1-0/+1
2022-04-29mm: use for_each_online_node and node_online instead of open codingPeng Liu1-2/+2
2022-04-29hugetlb: fix return value of __setup handlersPeng Liu1-8/+8
2022-04-29hugetlb: fix hugepages_setup when deal with pernodePeng Liu1-0/+15
2022-04-29hugetlb: fix wrong use of nr_online_nodesPeng Liu1-7/+5
2022-04-28mm: hugetlb_vmemmap: cleanup hugetlb_vmemmap related functionsMuchun Song1-5/+5
2022-04-28hugetlb: remove use of list iterator variable after loopJakob Koschel1-14/+19
2022-04-28mm, hugetlb, hwpoison: separate branch for free and in-use hugepageNaoya Horiguchi1-1/+3
2022-04-21mm/hwpoison: fix race between hugetlb free/demotion and memory_failure_hugetlb()Naoya Horiguchi1-0/+10
2022-04-15hugetlb: do not demote poisoned hugetlb pagesMike Kravetz1-7/+10
2022-03-22Merge tag 'folio-5.18c' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-6/+9
2022-03-22userfaultfd: provide unmasked address on page-faultNadav Amit1-2/+4
2022-03-22mm/hugetlb.c: export PageHeadHuge()David Howells1-0/+1
2022-03-22mm/hugetlb: use helper macro __ATTR_RWMiaohe Lin1-2/+1
2022-03-22hugetlb: clean up potential spectre issue warningsMike Kravetz1-3/+4
2022-03-22mm: hugetlb: fix missing cache flush in hugetlb_mcopy_atomic_pte()Muchun Song1-1/+2
2022-03-22mm: merge pte_mkhuge() call into arch_make_huge_pte()Anshuman Khandual1-2/+1