aboutsummaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-16mm/madvise: make MADV_POPULATE_(READ|WRITE) handle VM_FAULT_RETRY properlyDavid Hildenbrand1-15/+2
2024-03-04mm: madvise: pageout: ignore references rather than clearing youngBarry Song1-4/+4
2024-02-23madvise:madvise_cold_or_pageout_pte_range(): allow split while folio_estimate...Barry Song1-1/+1
2024-02-07mm/madvise: don't forget to leave lazy MMU mode in madvise_cold_or_pageout_pt...Sergey Senozhatsky1-0/+1
2023-12-29mm: return a folio from read_swap_cache_async()Matthew Wilcox (Oracle)1-11/+11
2023-12-06mm/madvise: add cond_resched() in madvise_cold_or_pageout_pte_range()Jiexun Wang1-0/+11
2023-10-18mm: drop the assumption that VM_SHARED always implies writableLorenzo Stoakes1-1/+1
2023-10-18mm: abstract the vma_merge()/split_vma() pattern for mprotect() et al.Lorenzo Stoakes1-22/+4
2023-10-04mm: remove remnants of SPLIT_RSS_COUNTINGMateusz Guzik1-4/+1
2023-08-24swap: remove remnants of polling from read_swap_cache_asyncSuren Baghdasaryan1-2/+2
2023-08-24merge mm-hotfixes-stable into mm-stable to pick up depended-upon changesAndrew Morton1-3/+3
2023-08-24madvise:madvise_free_pte_range(): don't use mapcount() against large folio fo...Yin Fengwei1-1/+1
2023-08-24madvise:madvise_cold_or_pageout_pte_range(): don't use mapcount() against lar...Yin Fengwei1-2/+2
2023-08-21merge mm-hotfixes-stable into mm-stable to pick up depended-upon changesAndrew Morton1-0/+3
2023-08-21mm: lock vma explicitly before doing vm_flags_reset and vm_flags_reset_onceSuren Baghdasaryan1-3/+2
2023-08-21mm: enable page walking API to lock vmas during the walkSuren Baghdasaryan1-0/+3
2023-08-18mm: make PTE_MARKER_SWAPIN_ERROR more generalAxel Rasmussen1-1/+1
2023-08-18mm: madvise: fix uneven accounting of psiCharan Teja Kalla1-0/+4
2023-06-19mm: ptep_get() conversionRyan Roberts1-3/+3
2023-06-19mm/madvise: clean up force_shm_swapin_readahead()Hugh Dickins1-11/+13
2023-06-19mm/madvise: clean up pte_offset_map_lock() scansHugh Dickins1-54/+68
2023-04-28Merge tag 'x86_mm_for_6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-2/+3
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-13/+1
2023-04-18mm/madvise: use vma_lookup() instead of find_vma()ZhangPeng1-13/+1
2023-03-30iov_iter: add iter_iov_addr() and iter_iov_len() helpersJens Axboe1-5/+4
2023-03-16mm: Introduce untagged_addr_remote()Kirill A. Shutemov1-2/+3
2023-02-23Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-64/+59
2023-02-20mm: change to return bool for folio_isolate_lru()Baolin Wang1-2/+2
2023-02-20Merge tag 'fs.idmapped.v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-1/+1
2023-02-09madvise: use split_vma() instead of __split_vma()Liam R. Howlett1-7/+3
2023-02-09mm: switch vma_merge(), split_vma(), and __split_vma to vma iteratorLiam R. Howlett1-3/+3
2023-02-09madvise: use vmi iterator for __split_vma() and vma_merge()Liam R. Howlett1-4/+5
2023-02-02mm: madvise: use vm_normal_folio() in madvise_free_pte_range()Kefeng Wang1-4/+2
2023-02-02mm/mmu_notifier: remove unused mmu_notifier_range_update_to_read_only exportAlistair Popple1-1/+1
2023-01-19fs: port inode_owner_or_capable() to mnt_idmapChristian Brauner1-1/+1
2023-01-18mm/swap: convert deactivate_page() to folio_deactivate()Vishal Moola (Oracle)1-2/+2
2023-01-18madvise: convert madvise_cold_or_pageout_pte_range() to use foliosVishal Moola (Oracle)1-49/+49
2023-01-18mm: swap: convert mark_page_lazyfree() to folio_mark_lazyfree()Kefeng Wang1-1/+1
2023-01-11mm: update mmap_sem comments to refer to mmap_lockLorenzo Stoakes1-1/+1
2022-12-13Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-23/+38
2022-12-12Merge tag 'pull-iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-1/+1
2022-12-11mm: add cond_resched() in swapin_walk_pmd_entry()Kefeng Wang1-0/+1
2022-12-11mm/madvise: fix madvise_pageout for private file mappingsPavankumar Kondeti1-18/+35
2022-11-30mm: anonymous shared memory namingPasha Tatashin1-5/+2
2022-11-30madvise: use zap_page_range_single for madvise dontneedMike Kravetz1-3/+3
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-1/+1
2022-10-28mm,madvise,hugetlb: fix unexpected data loss with MADV_DONTNEED on hugetlbfsRik van Riel1-1/+11
2022-10-03madvise: convert madvise_free_pte_range() to use a folioMatthew Wilcox (Oracle)1-24/+25
2022-09-26mm/madvise: use vma_find() instead of vma linked listLiam R. Howlett1-1/+1
2022-09-26Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-2/+5
2022-09-26mm: fix madivse_pageout mishandling on non-LRU pageMinchan Kim1-2/+5
2022-09-11mm/madvise: add MADV_COLLAPSE to process_madvise()Zach O'Keefe1-2/+2
2022-09-11mm/madvise: introduce MADV_COLLAPSE sync hugepage collapseZach O'Keefe1-0/+5
2022-07-17mm: handling Non-LRU pages returned by vm_normal_pagesAlex Sierra1-2/+2
2022-07-03mm/madvise: minor cleanup for swapin_walk_pmd_entry()Miaohe Lin1-5/+5
2022-06-16mm/memory-failure: disable unpoison once hw error happenszhenwei pi1-1/+1
2022-05-27mm: filter out swapin error entry in shmem mappingMiaohe Lin1-1/+4
2022-05-27mm/madvise: free hwpoison and swapin error entry in madvise_free_pte_rangeMiaohe Lin1-5/+8
2022-05-09mm: submit multipage reads for SWP_FS_OPS swap-spaceNeilBrown1-2/+6
2022-05-09mm: create new mm/swap.h header fileNeilBrown1-0/+1
2022-04-28mm/madvise: fix potential pte_unmap_unlock pte errorMiaohe Lin1-4/+4
2022-04-01Revert "mm: madvise: skip unmapped vma holes passed to process_madvise"Charan Teja Kalla1-8/+1
2022-03-24mm: madvise: MADV_DONTNEED_LOCKEDJohannes Weiner1-10/+14
2022-03-24mm: enable MADV_DONTNEED for hugetlb mappingsMike Kravetz1-3/+30
2022-03-22Merge tag 'folio-5.18c' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-0/+5
2022-03-22mm: madvise: skip unmapped vma holes passed to process_madviseCharan Teja Kalla1-1/+8
2022-03-22mm: madvise: return correct bytes advised with process_madviseCharan Teja Kalla1-2/+1
2022-03-22mm/madvise: use vma_lookup() instead of find_vma()Miaohe Lin1-2/+2
2022-03-22mm/hwpoison: avoid the impact of hwpoison_filter() return value on mce handlerluofei1-0/+2
2022-03-05mm: fix use-after-free when anon vma name is used after vma is freedSuren Baghdasaryan1-1/+7
2022-03-05mm: prevent vm_area_struct::anon_name refcount saturationSuren Baghdasaryan1-2/+1
2022-03-05mm: refactor vm_area_struct::anon_vma_name usage codeSuren Baghdasaryan1-58/+29
2022-02-17mm/munlock: delete munlock_vma_pages_all(), allow oomreapHugh Dickins1-0/+5
2022-01-15mm: move anon_vma declarations to linux/mm_inline.hArnd Bergmann1-0/+1
2022-01-15mm: add anonymous vma name refcountingSuren Baghdasaryan1-6/+36
2022-01-15mm: add a field to store names for private anonymous memoryColin Cross1-4/+125
2022-01-15mm: rearrange madvise code to allow for reuseColin Cross1-160/+178
2021-10-14mm: use pidfd_get_task()Christian Brauner1-12/+3
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+1
2021-09-03mm/madvise: add MADV_WILLNEED to process_madvise()zhangkui1-0/+1
2021-08-30Merge tag 'hole_punch_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-1/+1
2021-08-13mm/madvise: report SIGBUS as -EFAULT for MADV_POPULATE_(READ|WRITE)David Hildenbrand1-1/+3
2021-07-12mm: Fix comments mentioning i_mutexJan Kara1-1/+1
2021-06-30mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tablesDavid Hildenbrand1-0/+66
2021-05-07mm: fix typos in commentsIngo Molnar1-2/+2
2021-03-13mm/madvise: replace ptrace attach requirement for process_madviseSuren Baghdasaryan1-1/+12
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-2/+3
2021-01-29tlb: mmu_gather: Remove start/end arguments from tlb_gather_mmu()Will Deacon1-3/+3
2021-01-29tlb: mmu_gather: Remove unused start/end arguments from tlb_finish_mmu()Will Deacon1-3/+3
2021-01-24inode: make init and permission helpers idmapped mount awareChristian Brauner1-1/+2
2021-01-24fs: add file and path permissions helpersChristian Brauner1-1/+1
2020-12-15mm,memory_failure: always pin the page in madvise_inject_errorOscar Salvador1-8/+1
2020-12-15mm,hwpoison: drop unneeded pcplist drainingOscar Salvador1-5/+0
2020-12-08mm/madvise: remove racy mm ownership checkMinchan Kim1-2/+1
2020-11-22mm: fix madvise WILLNEED performance problemMatthew Wilcox (Oracle)1-1/+1
2020-11-22mm/madvise: fix memory leak from process_madviseEric Dumazet1-2/+0
2020-10-18mm/madvise: introduce process_madvise() syscall: an external memory hinting APIMinchan Kim1-1/+92
2020-10-18mm/madvise: pass mm to do_madviseMinchan Kim1-14/+18
2020-10-16mm: remove the now-unnecessary mmget_still_valid() hackJann Horn1-17/+0
2020-10-16mm,hwpoison: return 0 if the page is already poisoned in soft-offlineOscar Salvador1-5/+0
2020-10-16mm,hwpoison: refactor madvise_inject_errorOscar Salvador1-17/+13
2020-10-13mm: optimise madvise WILLNEEDMatthew Wilcox (Oracle)1-9/+12
2020-09-26mm: validate pmd after splittingMinchan Kim1-1/+1
2020-09-05mm: madvise: fix vma user-after-freeYang Shi1-1/+1
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-10/+10
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-10/+10
2020-04-24mm: check that mm is still valid in madvise()Linus Torvalds1-0/+18
2020-03-21mm: do not allow MADV_PAGEOUT for CoW pagesMichal Hocko1-3/+9
2020-01-20mm: make do_madvise() available internallyJens Axboe1-1/+6
2019-12-01mm/madvise.c: use PAGE_ALIGN[ED] for range checkingWei Yang1-2/+2
2019-12-01mm/madvise.c: replace with page_size() in madvise_inject_error()Yunfeng Ye1-4/+4
2019-12-01mm, soft-offline: convert parameter to pfnNaoya Horiguchi1-1/+1
2019-11-15mm: fix trying to reclaim unevictable lru page when calling madvise_pageoutzhong jiang1-4/+12
2019-09-25mm: factor out common parts between MADV_COLD and MADV_PAGEOUTMinchan Kim1-147/+45
2019-09-25mm: introduce MADV_PAGEOUTMinchan Kim1-0/+189
2019-09-25mm: introduce MADV_COLDMinchan Kim1-2/+177
2019-09-25mm: untag user pointers passed to memory syscallsAndrey Konovalov1-0/+2
2019-09-24mm/madvise: reduce code duplication in error handling pathsMike Rapoport1-36/+16
2019-09-21Merge tag 'for-linus-hmm' of git://git.kernel.org/pub/scm/linux/kernel/git/rd...Linus Torvalds1-29/+13
2019-09-07pagewalk: separate function pointers from iterator dataChristoph Hellwig1-29/+12
2019-09-07mm: split out a new pagewalk.h header from mm.hChristoph Hellwig1-0/+1
2019-08-30mm: Handle MADV_WILLNEED through vfs_fadvise()Jan Kara1-6/+16
2019-07-02mm: remove MEMORY_DEVICE_PUBLIC supportChristoph Hellwig1-1/+1
2019-05-14mm/mmu_notifier: use correct mmu_notifier events for each invalidationJérôme Glisse1-1/+1
2019-05-14mm/mmu_notifier: contextual information for event triggering invalidationJérôme Glisse1-1/+2
2019-04-03asm-generic/tlb, arch: Provide CONFIG_HAVE_MMU_GATHER_PAGE_SIZEPeter Zijlstra1-1/+1
2018-12-28mm/mmu_notifier: use structure for invalidate_range_start/end calls v2Jérôme Glisse1-10/+11
2018-10-28Merge branch 'xarray' of git://git.infradead.org/users/willy/linux-daxLinus Torvalds1-1/+1
2018-10-05mm: madvise(MADV_DODUMP): allow hugetlbfs pagesDaniel Black1-1/+1
2018-09-29xarray: Replace exceptional entriesMatthew Wilcox1-1/+1
2018-07-23mm, madvise_inject_error: Let memory_failure() optionally take a page referenceDan Williams1-3/+13
2018-01-23mm/memory_failure: Remove unused trapno from memory_failureEric W. Biederman1-1/+1
2017-11-29mm/madvise.c: fix madvise() infinite loop under special circumstanceschenjie1-3/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-13mm/madvise.c: add description for MADV_WIPEONFORK and MADV_KEEPONFORKYang Shi1-1/+6
2017-10-03mm, hugetlb, soft_offline: save compound page order before page migrationAlexandru Moise1-2/+10
2017-09-08mm/device-public-memory: device memory cache coherent with CPUJérôme Glisse1-1/+1
2017-09-06mm,fork: introduce MADV_WIPEONFORKRik van Riel1-0/+13
2017-08-31mm, madvise: ensure poisoned pages are removed from per-cpu listsMel Gorman1-0/+6
2017-08-25mm/madvise.c: fix freeing of locked page with MADV_FREEEric Biggers1-1/+1
2017-08-02mm, mprotect: flush TLB if potentially racing with a parallel reclaim leaving...Mel Gorman1-0/+1
2017-07-10userfaultfd: non-cooperative: add madvise() event for MADV_FREE requestMike Rapoport1-20/+22
2017-07-10swap: add block io poll in swapin pathShaohua Li1-2/+2
2017-05-03mm/madvise: move up the behavior parameter validationAnshuman Khandual1-4/+9
2017-05-03mm/madvise.c: clean up MADV_SOFT_OFFLINE and MADV_HWPOISONAnshuman Khandual1-14/+20
2017-05-03mm: enable MADV_FREE for swapless systemShaohua Li1-7/+1
2017-05-03mm: reclaim MADV_FREE pagesShaohua Li1-0/+1
2017-05-03mm: move MADV_FREE pages into LRU_INACTIVE_FILE listShaohua Li1-2/+0
2017-03-09userfaultfd: non-cooperative: userfaultfd_remove revalidate vma in MADV_DONTNEEDAndrea Arcangeli1-3/+41
2017-02-24mm: remove shmem_mapping() shmem_zero_setup() duplicatesHugh Dickins1-0/+1
2017-02-24mm, madvise: fail with ENOMEM when splitting vma will hit max_map_countDavid Rientjes1-9/+42
2017-02-24userfaultfd: non-cooperative: add madvise() event for MADV_REMOVE requestMike Rapoport1-0/+1
2017-02-24userfaultfd: non-cooperative: rename *EVENT_MADVDONTNEED to *EVENT_REMOVEMike Rapoport1-1/+1
2017-02-22oom-reaper: use madvise_dontneed() logic to decide if unmap the VMAKirill A. Shutemov1-1/+3
2017-02-22mm: drop unused argument of zap_page_range()Kirill A. Shutemov1-1/+1
2017-02-22userfaultfd: non-cooperative: avoid MADV_DONTNEED race conditionAndrea Arcangeli1-1/+1
2017-02-22userfaultfd: non-cooperative: add madvise() event for MADV_DONTNEED requestPavel Emelyanov1-0/+2
2016-12-12mm: add tlb_remove_check_page_size_change to track page size changeAneesh Kumar K.V1-0/+1
2016-05-23mm: make mmap_sem for write waits killable for mm syscallsMichal Hocko1-3/+5
2016-04-04mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macrosKirill A. Shutemov1-3/+3
2016-03-15mm/madvise: update comment on sys_madvise()Naoya Horiguchi1-0/+14
2016-03-15mm/madvise: pass return code of memory_failure() to userspaceNaoya Horiguchi1-2/+3
2016-01-15mm/huge_memory.c: don't split THP page when MADV_FREE syscall is calledMinchan Kim1-1/+7
2016-01-15mm: move lazily freed pages to inactive listMinchan Kim1-0/+2
2016-01-15mm/madvise.c: free swp_entry in madvise_freeMinchan Kim1-1/+24
2016-01-15mm: support madvise(MADV_FREE)Minchan Kim1-0/+170
2015-09-08mm: madvise allow remove operation for hugetlbfsMike Kravetz1-1/+1
2015-09-04mm/madvise.c: make madvise_behaviour_valid() return boolNicholas Krause1-3/+3
2015-09-04userfaultfd: teach vma_merge to merge across vma->vm_userfaultfd_ctxAndrea Arcangeli1-1/+2
2015-06-02writeback: separate out include/linux/backing-dev-defs.hTejun Heo1-0/+1
2015-02-16vfs: remove get_xip_memMatthew Wilcox1-1/+1
2015-02-12Merge branch 'for-3.20/bdi' of git://git.kernel.dk/linux-blockLinus Torvalds1-7/+10
2015-02-10mm: remove rest usage of VM_NONLINEAR and pte_file()Kirill A. Shutemov1-2/+2
2015-02-10mm: drop support of non-linear mapping from unmap/zap codepathKirill A. Shutemov1-8/+1
2015-01-20fs: kill BDI_CAP_SWAP_BACKEDChristoph Hellwig1-7/+10
2014-11-07VFS: Rename do_fallocate() to vfs_fallocate()Anna Schumaker1-1/+1
2014-08-06mm: update the description for madvise_removeWang Sheng-Hui1-3/+0
2014-05-23mm: madvise: fix MADV_WILLNEED on shmem swapoutsJohannes Weiner1-1/+1
2013-09-30mm/hwpoison: fix traversal of hugetlbfs pages to avoid printk floodWanpeng Li1-2/+3
2013-09-11mm/madvise.c:madvise_hwpoison(): remove local `ret'Andrew Morton1-4/+5
2013-09-11mm/madvise.c: fix return value of madvise_hwpoison()Wanpeng Li1-1/+1
2013-09-11mm/hwpoison.c: fix held reference count after unpoisoning empty zero pageWanpeng Li1-0/+4
2013-09-11mm/hwpoison: add '#' to madvise_hwpoisonWanpeng Li1-2/+2
2013-09-11mm/madvise.c: fix coding-style errorsVladimir Cernov1-7/+7
2013-04-29mm: madvise: complete input validation before taking lockRasmus Villemoes1-16/+15
2013-02-23mm: make madvise(MADV_WILLNEED) support swap file prefetchShaohua Li1-4/+101
2012-10-09mm: prepare VM_DONTDUMP for using in driversKonstantin Khlebnikov1-2/+6
2012-07-06mm: Hold a file reference in madvise_removeAndy Lutomirski1-4/+14
2012-05-29mm/fs: route MADV_REMOVE to FALLOC_FL_PUNCH_HOLEHugh Dickins1-8/+7
2012-03-23coredump: add VM_NODUMP, MADV_NODUMP, MADV_CLEAR_NODUMPJason Baron1-0/+8
2012-01-03HWPOISON: Clean up memory_failure() vs. __memory_failure()Tony Luck1-1/+1
2011-07-20fs: kill i_alloc_semChristoph Hellwig1-1/+1
2011-01-13thp: khugepaged: make khugepaged aware about madviseAndrea Arcangeli1-1/+1
2011-01-13thp: madvise(MADV_NOHUGEPAGE)Andrea Arcangeli1-1/+3
2011-01-13thp: madvise(MADV_HUGEPAGE)Andrea Arcangeli1-0/+8
2009-12-16HWPOISON: Add a madvise() injector for soft page offliningAndi Kleen1-3/+12
2009-12-16HWPOISON: Use get_user_page_fast in hwpoison madviseAndi Kleen1-2/+1
2009-12-16HWPOISON: Turn ref argument into flags argumentAndi Kleen1-1/+1
2009-12-16HWPOISON: avoid grabbing the page count multiple times during madvise injectionWu Fengguang1-1/+0