aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-06mm/mempolicy: use a folio in do_mbind()Matthew Wilcox (Oracle)1-7/+8
2024-02-22mm/mempolicy: protect task interleave functions with tsk->mems_allowed_seqGregory Price1-4/+23
2024-02-22mm/mempolicy: introduce MPOL_WEIGHTED_INTERLEAVE for weighted interleavingGregory Price1-4/+214
2024-02-22mm/mempolicy: refactor a read-once mechanism into a function for re-useGregory Price1-10/+16
2024-02-22mm/mempolicy: implement the sysfs-based weighted_interleave interfaceRakie Kim1-0/+223
2024-02-22mempolicy: clean up minor dead code in queue_pages_test_walk()Lukas Bulwahn1-4/+0
2023-11-02Merge tag 'mm-stable-2023-11-01-14-33' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-571/+455
2023-10-30Merge tag 'sched-core-2023-10-28' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-7/+11
2023-10-25mempolicy: migration attempt to match interleave nodesHugh Dickins1-5/+50
2023-10-25mempolicy: mmap_lock is not needed while migrating foliosHugh Dickins1-40/+43
2023-10-25mempolicy: alloc_pages_mpol() for NUMA policy without vmaHugh Dickins1-224/+155
2023-10-25mm: add page_rmappable_folio() wrapperHugh Dickins1-14/+3
2023-10-25mempolicy: remove confusing MPOL_MF_LAZY dead codeHugh Dickins1-18/+0
2023-10-25mempolicy: mpol_shared_policy_init() without pseudo-vmaHugh Dickins1-15/+15
2023-10-25mempolicy trivia: use pgoff_t in shared mempolicy treeHugh Dickins1-6/+6
2023-10-25mempolicy trivia: slightly more consistent namingHugh Dickins1-40/+33
2023-10-25mempolicy trivia: delete those ancient pr_debug()sHugh Dickins1-21/+0
2023-10-25mempolicy: fix migrate_pages(2) syscall return nr_failedHugh Dickins1-179/+159
2023-10-18mm: abstract the vma_merge()/split_vma() pattern for mprotect() et al.Lorenzo Stoakes1-23/+3
2023-10-18Merge mm-hotfixes-stable into mm-stable to pick up depended-upon changes.Andrew Morton1-1/+3
2023-10-16sched/numa, mm: make numa migrate functions to take a folioKefeng Wang1-1/+1
2023-10-16mm: mempolicy: make mpol_misplaced() to take a folioKefeng Wang1-10/+12
2023-10-07Merge branch 'sched/urgent' into sched/core, to pick up fixes and refresh the...Ingo Molnar1-20/+19
2023-10-06mm/mempolicy: fix set_mempolicy_home_node() previous VMA pointerLiam R. Howlett1-1/+3
2023-09-29mm: mempolicy: keep VMA walk if both MPOL_MF_STRICT and MPOL_MF_MOVE are spec...Yang Shi1-20/+19
2023-09-15numa: Generalize numa_map_to_online_node()Yury Norov1-7/+11
2023-08-21mm: convert prep_transhuge_page() to folio_prep_large_rmappable()Matthew Wilcox (Oracle)1-7/+8
2023-08-21mm: enable page walking API to lock vmas during the walkSuren Baghdasaryan1-8/+14
2023-07-28mm/mempolicy: Take VMA lock before replacing policyJann Horn1-1/+14
2023-06-19mm: ptep_get() conversionRyan Roberts1-2/+4
2023-06-19mm/pagewalkers: ACTION_AGAIN if pte_offset_map_lock() failsHugh Dickins1-3/+4
2023-06-09mm: convert migrate_pages() to work on foliosMatthew Wilcox (Oracle)1-9/+6
2023-05-02mm/mempolicy: correctly update prev when policy is equal on mbindLorenzo Stoakes1-1/+3
2023-04-16mm/mempolicy: fix use-after-free of VMA iteratorLiam R. Howlett1-55/+49
2023-02-20mm: hugetlb: change to return bool for isolate_hugetlb()Baolin Wang1-1/+1
2023-02-20mm: change to return bool for folio_isolate_lru()Baolin Wang1-1/+1
2023-02-13mm/mempolicy: convert migrate_page_add() to migrate_folio_add()Vishal Moola (Oracle)1-19/+20
2023-02-13mm/mempolicy: convert queue_pages_required() to queue_folio_required()Vishal Moola (Oracle)1-6/+6
2023-02-13mm/mempolicy: convert queue_pages_hugetlb() to queue_folios_hugetlb()Vishal Moola (Oracle)1-11/+18
2023-02-13mm/mempolicy: convert queue_pages_pte_range() to queue_folios_pte_range()Vishal Moola (Oracle)1-14/+14
2023-02-13mm/mempolicy: convert queue_pages_pmd() to queue_folios_pmd()Vishal Moola (Oracle)1-12/+12
2023-02-13mm/hugetlb: convert hugetlb fault paths to use alloc_hugetlb_folio()Sidhartha Kumar1-2/+4
2023-02-13mm/hugetlb: convert isolate_hugetlb to foliosSidhartha Kumar1-1/+1
2023-02-09mm: switch vma_merge(), split_vma(), and __split_vma to vma iteratorLiam R. Howlett1-3/+3
2023-02-09mempolicy: convert to vma iteratorLiam R. Howlett1-17/+8
2023-01-31Sync mm-stable with mm-hotfixes-stable to pick up dependent patchesAndrew Morton1-1/+2
2023-01-31migrate: hugetlb: check for hugetlb shared PMD in node migrationMike Kravetz1-1/+2
2023-01-18mm/uffd: detect pgtable allocation failuresPeter Xu1-1/+1
2023-01-18mm/mprotect: use long for page accountings and retvalPeter Xu1-1/+1
2023-01-18mm/mprotect: drop pgprot_t parameter from change_protection()David Hildenbrand1-2/+1
2023-01-18mm/mempolicy: do not duplicate policy if it is not applicable for set_mempoli...Michal Hocko1-16/+12
2022-12-21mm/mempolicy: fix memory leak in set_mempolicy_home_node system callMathieu Desnoyers1-0/+1
2022-10-20mm/mempolicy: fix mbind_range() arguments to vma_merge()Liam Howlett1-6/+11
2022-10-03mm/mempolicy: use PAGE_ALIGN instead of open-coding itze zuo1-2/+2
2022-09-26mm/mempolicy: use vma iterator & maple state instead of vma linked listLiam R. Howlett1-24/+32
2022-09-11mm/hugetlb: add dedicated func to get 'allowed' nodemask for current processFeng Tang1-1/+1
2022-09-11mm/mempolicy: fix lock contention on mems_allowedAbel Wu1-1/+3
2022-07-29mm/mempolicy: remove unneeded out labelMiaohe Lin1-3/+1
2022-07-17mm: handling Non-LRU pages returned by vm_normal_pagesAlex Sierra1-1/+1
2022-07-03mm/mempolicy: fix get_nodes out of bound accessTianyu Li1-1/+1
2022-07-03mm/migration: return errno when isolate_huge_page failedMiaohe Lin1-1/+1
2022-05-19mm/mempolicy: fix uninit-value in mpol_rebind_policy()Wang Cheng1-1/+1
2022-05-13mm: remove alloc_pages_vma()Matthew Wilcox (Oracle)1-26/+25
2022-05-13mm/mprotect: use mmu_gatherNadav Amit1-1/+8
2022-04-28mm/mempolicy: clean up the code logic in queue_pages_pte_rangeMiaohe Lin1-9/+3
2022-04-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+1
2022-04-08mm/mempolicy: fix mpol_new leak in shared_policy_replaceMiaohe Lin1-0/+1
2022-04-08mm: migrate: use thp_order instead of HPAGE_PMD_ORDER for new page allocation.Zi Yan1-1/+1
2022-04-07mm/mempolicy: Use vma_alloc_folio() in new_page()Matthew Wilcox (Oracle)1-14/+11
2022-04-07mm: Add vma_alloc_folio()Matthew Wilcox (Oracle)1-0/+13
2022-03-22mempolicy: mbind_range() set_policy() after vma_merge()Hugh Dickins1-7/+1
2022-03-22mm: change lookup_node() to use get_user_pages_fast()John Hubbard1-12/+9
2022-03-05mm: refactor vm_area_struct::anon_vma_name usage codeSuren Baghdasaryan1-1/+1
2022-01-15mm/mempolicy: fix all kernel-doc warningsRandy Dunlap1-2/+3
2022-01-15mm/mempolicy: add set_mempolicy_home_node syscallAneesh Kumar K.V1-0/+79
2022-01-15mm/mempolicy: use policy_node helper with MPOL_PREFERRED_MANYAneesh Kumar K.V1-2/+3
2022-01-15mm: drop node from alloc_pages_vmaMichal Hocko1-1/+2
2022-01-15mm: add a field to store names for private anonymous memoryColin Cross1-1/+2
2021-12-25mm: mempolicy: fix THP allocations escaping mempolicy restrictionsAndrey Ryabinin1-2/+1
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-61/+82
2021-11-06mm: migrate: make demotion knob depend on migrationYang Shi1-61/+0
2021-11-06mm/vmalloc: introduce alloc_pages_bulk_array_mempolicy to accelerate memory a...Chen Wandun1-0/+82
2021-11-01Merge tag 'folio-5.16' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-0/+10
2021-10-18mm/mempolicy: do not allow illegal MPOL_F_NUMA_BALANCING | MPOL_LOCAL in mbind()Eric Dumazet1-11/+5
2021-10-18mm/page_alloc: Add folio allocation functionsMatthew Wilcox (Oracle)1-0/+10
2021-09-08Merge branches 'akpm' and 'akpm-hotfixes' (patches from Andrew)Linus Torvalds1-154/+60
2021-09-08mm/mempolicy: fix a race between offset_il_node and mpol_rebind_taskyanghui1-4/+13
2021-09-08compat: remove some compat entry pointsArnd Bergmann1-37/+0
2021-09-08mm: simplify compat numa syscallsArnd Bergmann1-121/+55
2021-09-03mm/mempolicy.c: use in_task() in mempolicy_slab_node()Vasily Averin1-1/+1
2021-09-03mm/mempolicy: unify the create() func for bind/interleave/prefer-many policiesFeng Tang1-20/+4
2021-09-03mm/mempolicy: advertise new MPOL_PREFERRED_MANYBen Widawsky1-6/+1
2021-09-03mm/memplicy: add page allocation function for MPOL_PREFERRED_MANY policyFeng Tang1-0/+30
2021-09-03mm/mempolicy: add MPOL_PREFERRED_MANY for multiple preferred nodesDave Hansen1-14/+59
2021-09-03mm/mempolicy: use readable NUMA_NO_NODE macro instead of magic numberBaolin Wang1-3/+3
2021-09-03mm/migrate: add sysfs interface to enable reclaim migrationHuang Ying1-0/+61
2021-09-03mm/migrate: enable returning precise migrate_pages() success countYang Shi1-2/+2
2021-06-30mm/mempolicy: use unified 'nodes' for bind/interleave/prefer policiesBen Widawsky1-52/+44
2021-06-30mm: mempolicy: don't have to split pmd for huge zero pageYang Shi1-4/+5
2021-06-30mm/mempolicy: unify the parameter sanity check for mbind and set_mempolicyFeng Tang1-18/+30
2021-06-30mm/mempolicy: don't handle MPOL_LOCAL like a fake MPOL_PREFERRED policyFeng Tang1-80/+56
2021-06-30mm/mempolicy: cleanup nodemask intersection check for oomFeng Tang1-25/+9
2021-06-29mm/vmstat: convert NUMA statistics to basic NUMA countersMel Gorman1-1/+1
2021-06-29mm/mempolicy: use vma_lookup() in __access_remote_vm()Liam Howlett1-1/+1
2021-05-07mm: fix typos in commentsLu Jialin1-1/+1
2021-05-07mm: fix typos in commentsIngo Molnar1-2/+2
2021-05-05mm/mempool: minor coding style tweaksZhiyuan Dai1-2/+2
2021-05-05mm: replace migrate_[prep|finish] with lru_cache_[disable|enable]Minchan Kim1-4/+4
2021-05-05mm: disable LRU pagevec during the migration temporarilyMinchan Kim1-0/+4
2021-04-30mm/mempolicy: fix mpol_misplaced kernel-docMatthew Wilcox (Oracle)1-7/+4
2021-04-30mm/mempolicy: rewrite alloc_pages_vma documentationMatthew Wilcox (Oracle)1-21/+13
2021-04-30mm/mempolicy: rewrite alloc_pages documentationMatthew Wilcox (Oracle)1-11/+10
2021-04-30mm/mempolicy: rename alloc_pages_current to alloc_pagesMatthew Wilcox (Oracle)1-3/+3
2021-04-30mm/page_alloc: combine __alloc_pages and __alloc_pages_nodemaskMatthew Wilcox (Oracle)1-3/+3
2021-02-24mm/mempolicy: use helper range_in_vma() in queue_pages_test_walk()Miaohe Lin1-1/+1
2021-02-24numa balancing: migrate on fault among multiple bound nodesHuang Ying1-0/+16
2021-01-12mm: migrate: initialize err in do_migrate_pagesJan Stancek1-1/+1
2020-12-15mm: migrate: clean up migrate_prep{_local}Yang Shi1-6/+2
2020-11-02mm: mempolicy: fix potential pte_unmap_unlock pte errorShijie Luo1-3/+3
2020-10-13mm: remove unused alloc_page_vma_node()Wei Yang1-2/+1
2020-10-13mm/mempolicy: remove or narrow the lock on currentWei Yang1-4/+1
2020-08-14mm: replace hpage_nr_pages with thp_nr_pagesMatthew Wilcox (Oracle)1-1/+1
2020-08-12mm/mempolicy: use a standard migration target allocation callbackJoonsoo Kim1-25/+6
2020-08-12mm/hugetlb: unify migration callbacksJoonsoo Kim1-4/+6
2020-08-12mm/mempolicy.c: check parameters first in kernel_get_mempolicyWenchao Hao1-2/+2
2020-08-12mm: mempolicy: fix kerneldoc of numa_map_to_online_node()Krzysztof Kozlowski1-1/+1
2020-08-12mm/hugetlb: add mempolicy check in the reservation routineMuchun Song1-1/+1
2020-07-16treewide: Remove uninitialized_var() usageKees Cook1-2/+2
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-11/+11
2020-06-03mm, mempolicy: fix up gup usage in lookup_nodeMichal Hocko1-4/+1
2020-04-08Merge tag 'libnvdimm-for-5.7' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+26
2020-04-07mm/mempolicy: Allow lookup_node() to handle fatal signalPeter Xu1-2/+5
2020-04-07mm: use fallthrough;Joe Perches1-3/+0
2020-04-07mm/mempolicy: add missing annotation for queue_pages_pmd()Jules Irenge1-0/+1
2020-04-07mm: merge parameters for change_protection()Peter Xu1-1/+1
2020-04-07mm: code cleanup for MADV_FREEHuang Ying1-1/+1
2020-04-07mm/vma: make vma_is_accessible() available for general useAnshuman Khandual1-2/+1
2020-04-02mm: mempolicy: require at least one nodeid for MPOL_PREFERREDRandy Dunlap1-1/+5
2020-04-02mm: mempolicy: use VM_BUG_ON_VMA in queue_pages_test_walk()Yang Shi1-1/+1
2020-04-02mm/mempolicy: check hugepage migration is supported by arch in vma_migratable()Li Xinhai1-0/+28
2020-04-02mm/mempolicy: support MPOL_MF_STRICT for huge page mappingLi Xinhai1-4/+33
2020-02-17mm/numa: Skip NUMA_NO_NODE and online nodes in numa_map_to_online_node()Dan Williams1-12/+8
2020-02-17ACPI: NUMA: Up-level "map to online node" functionalityDan Williams1-0/+30
2020-01-31mm/mempolicy.c: fix out of bounds write in mpol_parse_str()Dan Carpenter1-3/+3
2020-01-13mm, thp: tweak reclaim/compaction effort of local-only and all-node allocationsVlastimil Babka1-3/+7
2019-12-01mm/mempolicy.c: fix checking unmapped holes for mbindLi Xinhai1-13/+27
2019-12-01mm/mempolicy.c: check range first in queue_pages_test_walkLi Xinhai1-9/+10
2019-11-15mm: mempolicy: fix the wrong return value and potential pages leak of mbindYang Shi1-5/+9
2019-09-28Merge branch 'hugepage-fallbacks' (hugepatch patches from David Rientjes)Linus Torvalds1-4/+41
2019-09-28mm, page_alloc: allow hugepage fallback to remote nodes when madvisedDavid Rientjes1-0/+11
2019-09-28Revert "Revert "Revert "mm, thp: consolidate THP gfp handling into alloc_huge...David Rientjes1-3/+29
2019-09-28Revert "Revert "mm, thp: restore node-local hugepage allocations""David Rientjes1-1/+1
2019-09-25mm: untag user pointers passed to memory syscallsAndrey Konovalov1-0/+3
2019-09-24mm/mempolicy.c: remove unnecessary nodemask check in kernel_migrate_pages()Kefeng Wang1-4/+0
2019-09-07pagewalk: separate function pointers from iterator dataChristoph Hellwig1-8/+7
2019-09-07mm: split out a new pagewalk.h header from mm.hChristoph Hellwig1-1/+1
2019-08-13Revert "mm, thp: restore node-local hugepage allocations"Andrea Arcangeli1-1/+1
2019-08-13Revert "Revert "mm, thp: consolidate THP gfp handling into alloc_hugepage_dir...Andrea Arcangeli1-29/+3
2019-08-13mm: mempolicy: handle vma with unmovable pages mapped correctly in mbindYang Shi1-7/+25
2019-08-13mm: mempolicy: make the behavior consistent when MPOL_MF_MOVE* and MPOL_MF_ST...Yang Shi1-20/+48
2019-07-02mm: export alloc_pages_vmaChristoph Hellwig1-0/+1
2019-06-29mm/mempolicy.c: fix an incorrect rebind node in mpol_rebind_nodemaskzhong jiang1-1/+1
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 225Thomas Gleixner1-1/+1
2019-03-29mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specifiedYang Shi1-7/+33
2019-03-05mm, mempolicy: fix uninit memory accessVlastimil Babka1-1/+1
2019-03-05mm: replace all open encodings for NUMA_NO_NODEAnshuman Khandual1-1/+1
2019-02-21numa: change get_mempolicy() to use nr_node_ids instead of MAX_NUMNODESRalph Campbell1-3/+3
2018-12-08Revert "mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpm...David Rientjes1-3/+29
2018-12-05mm, thp: restore node-local hugepage allocationsDavid Rientjes1-1/+1
2018-11-03mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpmaskMichal Hocko1-59/+4
2018-11-03mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappingsAndrea Arcangeli1-2/+30
2018-10-26mm/mempolicy.c: use match_string() helper to simplify the codezhong jiang1-8/+3
2018-10-26userfaultfd: allow get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) to trigger userfaultsAndrea Arcangeli1-5/+19
2018-08-22mm: access zone->node via zone_to_nid() and zone_set_nid()Pavel Tatashin1-2/+2
2018-08-22mm: zero out the vma in vma_init()Andrew Morton1-1/+0
2018-07-26mm: use vma_init() to initialize VMAs on stack and data segmentsKirill A. Shutemov1-0/+1
2018-04-11mm: unclutter THP migrationMichal Hocko1-28/+3
2018-04-11mm, migrate: remove reason argument from new_page_tMichal Hocko1-3/+3
2018-04-11mm, numa: rework do_pages_moveMichal Hocko1-2/+3
2018-04-02Merge branch 'syscalls-next' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-15/+77
2018-04-02mm: add kernel_[sg]et_mempolicy() helpers; remove in-kernel calls to syscallsDominik Brodowski1-7/+22
2018-04-02mm: add kernel_mbind() helper; remove in-kernel call to syscallDominik Brodowski1-4/+11
2018-04-02mm: add kernel_migrate_pages() helper, move compat syscall to mm/mempolicy.cDominik Brodowski1-4/+44
2018-03-22mm/mempolicy.c: avoid use uninitialized preferred_nodeYisheng Xie1-0/+3
2018-01-31hugetlb, mbind: fall back to default policy if vma is NULLMichal Hocko1-1/+2
2018-01-31hugetlb, mempolicy: fix the mbind hugetlb migrationMichal Hocko1-2/+1
2018-01-31mm/mempolicy: add nodes_empty check in SYSC_migrate_pagesYisheng Xie1-3/+7
2018-01-31mm/mempolicy: fix the check of nodemask from userYisheng Xie1-3/+20
2018-01-31mm/mempolicy: remove redundant check in get_nodesYisheng Xie1-2/+0
2017-11-15mm, sysctl: make NUMA stats configurableKemi Wang1-0/+3
2017-11-15Unify migrate_pages and move_pages access checksOtto Ebeling1-9/+4
2017-10-13mm/mempolicy: fix NUMA_INTERLEAVE_HIT counterAndrey Ryabinin1-2/+5
2017-09-08mm/mempolicy.c: remove BUG_ON() checks for VMA inside mpol_misplaced()Anshuman Khandual1-5/+0
2017-09-08mm: remove useless vma parameter to offset_il_nodeLaurent Dufour1-4/+3
2017-09-08mm: mempolicy: mbind and migrate_pages support thp migrationNaoya Horiguchi1-29/+79
2017-09-08mm: mempolicy: add queue_pages_required()Naoya Horiguchi1-5/+17
2017-08-18mm/mempolicy: fix use after free when calling get_mempolicyzhong jiang1-5/+0
2017-07-12mm, migration: do not trigger OOM killer when migrating memoryMichal Hocko1-1/+2