aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
AgeCommit message (Expand)AuthorFilesLines
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
2022-03-21mm/hugetlb: Use try_grab_folio() instead of try_grab_compound_head()Matthew Wilcox (Oracle)1-4/+3
2022-03-21mm: Make compound_pincount always availableMatthew Wilcox (Oracle)1-0/+4
2022-02-26hugetlbfs: fix a truncation issue in hugepages parameterLiu Yuntao1-2/+2
2022-02-26mm/hugetlb: fix kernel crash with hugetlb mremapAneesh Kumar K.V1-4/+3
2022-02-17mm/munlock: rmap call mlock_vma_page() munlock_vma_page()Hugh Dickins1-2/+2
2022-01-15mm: change page type prior to adding page table entryPasha Tatashin1-3/+3
2021-12-10hugetlbfs: fix issue of preallocation of gigantic pages can't workZhenguo Yao1-1/+1
2021-11-22hugetlbfs: flush before unlock on move_hugetlb_page_tables()Nadav Amit1-1/+1
2021-11-22hugetlbfs: flush TLBs correctly after huge_pmd_unshareNadav Amit1-4/+19
2021-11-20hugetlb, userfaultfd: fix reservation restore on userfaultfd errorMina Almasry1-3/+4
2021-11-20hugetlb: fix hugetlb cgroup refcounting during mremapBui Quang Minh1-1/+3
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-63/+636
2021-11-06hugetlbfs: extend the definition of hugepages parameter to support node alloc...Zhenguo Yao1-25/+128
2021-11-06hugetlb: remove unnecessary set_page_count in prep_compound_gigantic_pageMike Kravetz1-1/+0
2021-11-06hugetlb: remove redundant VM_BUG_ON() in add_reservation_in_range()Baolin Wang1-1/+0
2021-11-06hugetlb: remove redundant validation in has_same_uncharge_info()Baolin Wang1-2/+1
2021-11-06hugetlb: replace the obsolete hugetlb_instantiation_mutex in the commentsBaolin Wang1-1/+1
2021-11-06hugetlb: support node specified when using cma for gigantic hugepagesBaolin Wang1-9/+77
2021-11-06mm, hugepages: add mremap() support for hugepage backed vmaMina Almasry1-6/+105
2021-11-06hugetlb: add hugetlb demote page supportMike Kravetz1-8/+92
2021-11-06hugetlb: add demote bool to gigantic page routinesMike Kravetz1-11/+43
2021-11-06hugetlb: be sure to free demoted CMA pages to CMAMike Kravetz1-2/+39
2021-11-06hugetlb: add demote hugetlb page sysfs interfacesMike Kravetz1-1/+154
2021-11-06mm/hugetlb: drop __unmap_hugepage_range definition from hugetlb.hPeter Xu1-3/+3
2021-10-18mm/migrate: Add folio_migrate_copy()Matthew Wilcox (Oracle)1-1/+1
2021-09-03mm/hugetlb: add support for mempolicy MPOL_PREFERRED_MANYBen Widawsky1-5/+25
2021-09-03hugetlb: fix hugetlb cgroup refcounting during vma splitMike Kravetz1-1/+3
2021-09-03hugetlb: before freeing hugetlb page set dtor to appropriate valueMike Kravetz1-1/+21
2021-09-03hugetlb: drop ref count earlier after page allocationMike Kravetz1-22/+78
2021-09-03hugetlb: simplify prep_compound_gigantic_page ref count racing codeMike Kravetz1-10/+7
2021-08-20hugetlb: don't pass page cache pages to restore_reserve_on_errorMike Kravetz1-5/+14
2021-07-15mm/hugetlb: fix refs calculation from unaligned @vaddrJoao Martins1-2/+3
2021-07-01mm/swapops: rework swap entry manipulation codeAlistair Popple1-4/+6
2021-06-30hugetlb: address ref count racing in prep_compound_gigantic_pageMike Kravetz1-8/+64
2021-06-30hugetlb: remove prep_compound_huge_page cleanupMike Kravetz1-19/+10
2021-06-30mm, hugetlb: fix racy resv_huge_pages underflow on UFFDIO_COPYMina Almasry1-9/+39
2021-06-30mm/hugetlb: change parameters of arch_make_huge_pte()Christophe Leroy1-2/+4
2021-06-30mm: hugetlb: introduce nr_free_vmemmap_pages in the struct hstateMuchun Song1-0/+1
2021-06-30mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB pageMuchun Song1-15/+83
2021-06-30mm: hugetlb: defer freeing of HugeTLB pagesMuchun Song1-7/+76
2021-06-30mm: hugetlb: free the vmemmap pages associated with each HugeTLB pageMuchun Song1-12/+10
2021-06-29mm,hwpoison: make get_hwpoison_page() call get_any_page()Naoya Horiguchi1-0/+2
2021-06-24mm, futex: fix shared futex pgoff on shmem huge pageHugh Dickins1-4/+1
2021-06-16mm/hugetlb: expand restore_reserve_on_error functionalityMike Kravetz1-23/+97
2021-06-16mm,hwpoison: fix race with hugetlb page allocationNaoya Horiguchi1-0/+15
2021-06-05mm, hugetlb: fix simple resv_huge_pages underflow on UFFDIO_COPYMina Almasry1-2/+12
2021-06-05hugetlb: pass head page to remove_hugetlb_page()Naoya Horiguchi1-1/+1
2021-05-14mm/hugetlb: fix cow where page writtable in childPeter Xu1-0/+1
2021-05-07mm: fix typos in commentsIngo Molnar1-3/+3
2021-05-05mm: honor PF_MEMALLOC_PIN for all movable pagesPavel Tatashin1-1/+1
2021-05-05mm cma: rename PF_MEMALLOC_NOCMA to PF_MEMALLOC_PINPavel Tatashin1-2/+2
2021-05-05userfaultfd: add UFFDIO_CONTINUE ioctlAxel Rasmussen1-14/+26
2021-05-05userfaultfd: hugetlbfs: only compile UFFD helpers if config enabledAxel Rasmussen1-0/+2
2021-05-05userfaultfd: add minor fault registration modeAxel Rasmussen1-28/+52
2021-05-05mm: make alloc_contig_range handle in-use hugetlb pagesOscar Salvador1-5/+17
2021-05-05mm: make alloc_contig_range handle free hugetlb pagesOscar Salvador1-0/+116
2021-05-05mm,hugetlb: split prep_new_huge_page functionalityOscar Salvador1-3/+17