aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
AgeCommit message (Expand)AuthorFilesLines
2024-02-22rmap: replace two calls to compound_order with folio_orderMatthew Wilcox (Oracle)1-2/+2
2024-02-21mm: convert mm_counter_file() to take a folioKefeng Wang1-1/+1
2024-02-21mm: convert mm_counter() to take a folioKefeng Wang1-4/+4
2023-12-29mm/rmap: rename COMPOUND_MAPPED to ENTIRELY_MAPPEDDavid Hildenbrand1-9/+9
2023-12-29mm: convert page_try_share_anon_rmap() to folio_try_share_anon_rmap_[pte|pmd]()David Hildenbrand1-5/+6
2023-12-29mm/rmap: remove page_remove_rmap()David Hildenbrand1-21/+2
2023-12-29mm/rmap: page_remove_rmap() -> folio_remove_rmap_pte()David Hildenbrand1-5/+5
2023-12-29mm/rmap: introduce folio_remove_rmap_[pte|ptes|pmd]()David Hildenbrand1-16/+66
2023-12-29mm/rmap: remove RMAP_COMPOUNDDavid Hildenbrand1-2/+0
2023-12-29mm/rmap: remove page_add_anon_rmap()David Hildenbrand1-27/+4
2023-12-29mm/rmap: introduce folio_add_anon_rmap_[pte|ptes|pmd]()David Hildenbrand1-38/+82
2023-12-29mm/rmap: factor out adding folio mappings into __folio_add_rmap()David Hildenbrand1-34/+44
2023-12-29mm/rmap: remove page_add_file_rmap()David Hildenbrand1-21/+0
2023-12-29mm/rmap: convert folio_add_file_rmap_range() into folio_add_file_rmap_[pte|pt...David Hildenbrand1-29/+50
2023-12-29mm/rmap: add hugetlb sanity checks for anon rmap handlingDavid Hildenbrand1-0/+6
2023-12-29mm/rmap: introduce and use hugetlb_try_share_anon_rmap()David Hildenbrand1-5/+10
2023-12-29mm/rmap: introduce and use hugetlb_add_file_rmap()David Hildenbrand1-0/+1
2023-12-29mm/rmap: introduce and use hugetlb_remove_rmap()David Hildenbrand1-9/+9
2023-12-29mm/rmap: rename hugepage_add* to hugetlb_add*David Hildenbrand1-4/+4
2023-12-29mm: remove references to page_add_new_anon_rmap in commentsMatthew Wilcox (Oracle)1-2/+2
2023-12-29userfaultfd: UFFDIO_MOVE uABIAndrea Arcangeli1-0/+6
2023-12-29mm/rmap: support move to different root anon_vma in folio_move_anon_rmap()Andrea Arcangeli1-0/+24
2023-12-20mm: non-pmd-mappable, large folios for folio_add_new_anon_rmap()Ryan Roberts1-8/+20
2023-12-20mm: allow deferred splitting of arbitrary anon large foliosRyan Roberts1-2/+2
2023-10-18mm/rmap: convert page_move_anon_rmap() to folio_move_anon_rmap()David Hildenbrand1-9/+7
2023-10-18mm/rmap: move SetPageAnonExclusive() out of page_move_anon_rmap()David Hildenbrand1-1/+0
2023-10-04mm: handle large folio when large folio in VM_LOCKED VMA rangeYin Fengwei1-11/+55
2023-10-04mm/rmap: pass folio to hugepage_add_anon_rmap()David Hildenbrand1-5/+3
2023-10-04mm/rmap: simplify PageAnonExclusive sanity checks when adding anon rmapDavid Hildenbrand1-8/+8
2023-10-04mm/rmap: warn on new PTE-mapped folios in page_add_anon_rmap()David Hildenbrand1-0/+7
2023-10-04mm/rmap: move folio_test_anon() check out of __folio_set_anon()David Hildenbrand1-15/+8
2023-10-04mm/rmap: move SetPageAnonExclusive out of __page_set_anon_rmap()David Hildenbrand1-20/+21
2023-10-04mm/rmap: drop stale comment in page_add_anon_rmap and hugepage_add_anon_rmap()David Hildenbrand1-2/+0
2023-09-29mm: hugetlb: add huge page size param to set_huge_pte_at()Ryan Roberts1-5/+18
2023-08-24mm/swap: stop using page->private on tail pages for THP_SWAPDavid Hildenbrand1-1/+1
2023-08-24rmap: add folio_add_file_rmap_range()Yin Fengwei1-14/+46
2023-08-18mmu_notifiers: don't invalidate secondary TLBs as part of mmu_notifier_invali...Alistair Popple1-40/+0
2023-08-18mm/rmap: correct stale comment of rmap_walk_anon and rmap_walk_fileKemeng Shi1-5/+7
2023-08-18mm/tlbbatch: introduce arch_flush_tlb_batched_pending()Yicong Yang1-1/+1
2023-08-18mm/tlbbatch: rename and extend some functionsBarry Song1-5/+7
2023-08-18mm/tlbbatch: introduce arch_tlbbatch_should_defer()Anshuman Khandual1-8/+1
2023-08-18rmap: pass the folio to __page_check_anon_rmap()Matthew Wilcox (Oracle)1-4/+4
2023-06-19mm: ptep_get() conversionRyan Roberts1-14/+20
2023-06-09mm/gup: remove vmas parameter from get_user_pages_remote()Lorenzo Stoakes1-1/+1
2023-04-27mm,unmap: avoid flushing TLB in batch if PTE is inaccessibleHuang Ying1-4/+8
2023-04-05mm/khugepaged: write-lock VMA while collapsing a huge pageSuren Baghdasaryan1-15/+16
2023-03-28mm/rmap: use atomic_try_cmpxchg in set_tlb_ubc_flush_pendingUros Bizjak1-5/+2
2023-02-27mm/hwpoison: convert TTU_IGNORE_HWPOISON to TTU_HWPOISONNaoya Horiguchi1-1/+1
2023-02-16migrate_pages: batch flushing TLBHuang Ying1-3/+17
2023-02-13mm/hugetlb: convert hugetlb fault paths to use alloc_hugetlb_folio()Sidhartha Kumar1-4/+2
2023-02-09mm/mmap: remove __vma_adjust()Liam R. Howlett1-7/+8
2023-02-02rmap: add folio parameter to __page_set_anon_rmap()Matthew Wilcox (Oracle)1-10/+11
2023-02-02mm: remove munlock_vma_page()Matthew Wilcox (Oracle)1-6/+6
2023-02-02mm: remove mlock_vma_page()Matthew Wilcox (Oracle)1-2/+2
2023-02-02mm: remove __HAVE_ARCH_PTE_SWP_EXCLUSIVEDavid Hildenbrand1-11/+0
2023-02-02mm: mlock: update the interface to use foliosLorenzo Stoakes1-2/+2
2023-02-02mm: convert deferred_split_huge_page() to deferred_split_folio()Matthew Wilcox (Oracle)1-1/+1
2023-02-02mm: use a folio in hugepage_add_anon_rmap() and hugepage_add_new_anon_rmap()Matthew Wilcox (Oracle)1-4/+7
2023-02-02mm: add folio_add_new_anon_rmap()Matthew Wilcox (Oracle)1-19/+18
2023-02-02mm: convert page_add_file_rmap() to use a folio internallyMatthew Wilcox (Oracle)1-11/+10
2023-02-02mm: convert page_add_anon_rmap() to use a folio internallyMatthew Wilcox (Oracle)1-12/+11
2023-02-02mm: convert page_remove_rmap() to use a folio internallyMatthew Wilcox (Oracle)1-21/+26
2023-02-02mm: convert total_compound_mapcount() to folio_total_mapcount()Matthew Wilcox (Oracle)1-11/+10
2023-02-02mm: convert head_subpages_mapcount() into folio_nr_pages_mapped()Matthew Wilcox (Oracle)1-4/+5
2023-02-02mm/mmu_notifier: remove unused mmu_notifier_range_update_to_read_only exportAlistair Popple1-6/+5
2023-01-18mm: add vma_has_recency()Yu Zhao1-24/+18
2023-01-18mm: rmap: remove lock_page_memcg()Johannes Weiner1-18/+8
2022-12-11mm,thp,rmap: fix races between updates of subpages_mapcountHugh Dickins1-9/+33
2022-11-30mm,thp,rmap: subpages_mapcount COMPOUND_MAPPED if PMD-mappedHugh Dickins1-96/+25
2022-11-30mm,thp,rmap: subpages_mapcount of PTE-mapped subpagesHugh Dickins1-92/+68
2022-11-30mm,thp,rmap: handle the normal !PageCompound case firstHugh Dickins1-27/+27
2022-11-30mm,thp,rmap: lock_compound_mapcounts() on THP mapcountsHugh Dickins1-145/+188
2022-11-30mm,thp,rmap: simplify compound page mapcount handlingHugh Dickins1-61/+81
2022-11-08mm/hugetlb: unify clearing of RestoreReserve for private pagesPeter Xu1-1/+1
2022-11-08mm: rmap: rename page_not_mapped() to folio_not_mapped()Kefeng Wang1-4/+4
2022-11-08mm/rmap: fix comment in anon_vma_clone()Ma Wupeng1-2/+2
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-78/+106
2022-10-03hugetlb: use new vma_lock for pmd sharing synchronizationMike Kravetz1-35/+65
2022-10-03hugetlb: add vma based lock for pmd sharingMike Kravetz1-1/+7
2022-10-03hugetlbfs: revert use i_mmap_rwsem for more pmd sharing synchronizationMike Kravetz1-7/+1
2022-10-03rmap: remove page_unlock_anon_vma_read()Matthew Wilcox (Oracle)1-5/+0
2022-10-03mm: convert page_get_anon_vma() to folio_get_anon_vma()Matthew Wilcox (Oracle)1-7/+7
2022-10-03rmap: convert page_move_anon_rmap() to use a folioMatthew Wilcox (Oracle)1-8/+6
2022-09-26mm: multi-gen LRU: exploit locality in rmapYu Zhao1-0/+6
2022-09-26mm: remember young/dirty bit for page migrationsPeter Xu1-1/+4
2022-09-11mm: fix PageAnonExclusive clearing racing with concurrent RCU GUP-fastDavid Hildenbrand1-5/+6
2022-09-11mm/khugepaged: record SCAN_PMD_MAPPED when scan_pmd() finds hugepageZach O'Keefe1-10/+5
2022-08-31mm/rmap: Fix anon_vma->degree ambiguity leading to double-reuseJann Horn1-13/+16
2022-08-05Merge tag 'mm-stable-2022-08-03' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-60/+54
2022-07-17hugetlb: do not update address in huge_pmd_unshareMike Kravetz1-2/+2
2022-07-17mm: add zone device coherent type memory supportAlex Sierra1-2/+3
2022-07-03mm: hugetlb: kill set_huge_swap_pte_at()Qi Zheng1-8/+3
2022-07-03mm: rmap: simplify the hugetlb handling when unmapping or migrationBaolin Wang1-46/+44
2022-07-03mm/rmap: fix dereferencing invalid subpage pointer in try_to_migrate_one()David Hildenbrand1-10/+17
2022-06-27docs: rename Documentation/vm to Documentation/mmMike Rapoport1-4/+4
2022-05-19mm: don't be stuck to rmap lock on reclaim pathMinchan Kim1-11/+41
2022-05-13mm: rmap: fix CONT-PTE/PMD size hugetlb issue when unmappingBaolin Wang1-17/+22
2022-05-13mm: rmap: fix CONT-PTE/PMD size hugetlb issue when migrationBaolin Wang1-6/+18
2022-05-13mm/shmem: persist uffd-wp bit across zapping for file-backedPeter Xu1-0/+8
2022-05-13mm/rmap: Fix typos in commentsAdrian Huang1-2/+2
2022-05-13mm: rmap: use flush_cache_range() to flush cache for hugetlb pagesBaolin Wang1-42/+48
2022-05-13mm: rmap: move the cache flushing to the correct place for hugetlb PMD sharingBaolin Wang1-18/+22
2022-05-09mm/swap: remember PG_anon_exclusive via a swp pte bitDavid Hildenbrand1-8/+11
2022-05-09mm/rmap: fail try_to_migrate() early when setting a PMD migration entry failsDavid Hildenbrand1-1/+5
2022-05-09mm: remember exclusively mapped anonymous pages with PG_anon_exclusiveDavid Hildenbrand1-5/+56
2022-05-09mm/rmap: drop "compound" parameter from page_add_new_anon_rmap()David Hildenbrand1-5/+6
2022-05-09mm/rmap: pass rmap flags to hugepage_add_anon_rmap()David Hildenbrand1-3/+6
2022-05-09mm/rmap: remove do_page_add_anon_rmap()David Hildenbrand1-13/+1
2022-05-09mm/rmap: convert RMAP flags to a proper distinct rmap_t typeDavid Hildenbrand1-3/+4
2022-05-09mm/rmap: fix missing swap_free() in try_to_unmap() after arch_unmap_one() failedDavid Hildenbrand1-0/+1
2022-04-28mm: rmap: introduce pfn_mkclean_range() to cleans PTEsMuchun Song1-11/+54
2022-04-28mm: rmap: fix cache flush on THP pagesMuchun Song1-1/+2
2022-04-01mm/munlock: protect the per-CPU pagevec by a local_lock_tSebastian Andrzej Siewior1-2/+2
2022-03-24mm: fix race between MADV_FREE reclaim and blkdev direct IO readMauricio Faria de Oliveira1-1/+24
2022-03-24mm/migration: add trace events for base page and HugeTLB migrationsAnshuman Khandual1-0/+6
2022-03-24mm/thp: fix NR_FILE_MAPPED accounting in page_*_file_rmap()Hugh Dickins1-17/+14
2022-03-22Merge tag 'folio-5.18b' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-2/+2
2022-03-22Merge tag 'folio-5.18c' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-339/+239
2022-03-22mm/thp: ClearPageDoubleMap in first page_add_file_rmap()Hugh Dickins1-0/+11
2022-03-22mm/hwpoison: check the subpage, not the head pageMatthew Wilcox (Oracle)1-2/+2
2022-03-21mm/rmap: Constify the rmap_walk_control argumentMatthew Wilcox (Oracle)1-7/+7
2022-03-21mm/rmap: Convert rmap_walk() to take a folioMatthew Wilcox (Oracle)1-59/+52
2022-03-21mm: Turn page_anon_vma() into folio_anon_vma()Matthew Wilcox (Oracle)1-7/+12
2022-03-21mm/rmap: Turn page_lock_anon_vma_read() into folio_lock_anon_vma_read()Matthew Wilcox (Oracle)1-6/+6
2022-03-21mm/rmap: Convert make_device_exclusive_range() to use foliosMatthew Wilcox (Oracle)1-27/+31
2022-03-21mm/rmap: Convert try_to_migrate() to foliosMatthew Wilcox (Oracle)1-28/+31
2022-03-21mm/rmap: Convert try_to_unmap() to take a folioMatthew Wilcox (Oracle)1-40/+43
2022-03-21mm/huge_memory: Convert __split_huge_pmd() to take a folioMatthew Wilcox (Oracle)1-2/+4
2022-03-21mm/rmap: Turn page_referenced() into folio_referenced()Matthew Wilcox (Oracle)1-35/+35
2022-03-21mm/rmap: Use a folio in page_mkclean_one()Matthew Wilcox (Oracle)1-4/+5
2022-03-21mm: Convert page_vma_mapped_walk to work on PFNsMatthew Wilcox (Oracle)1-5/+3
2022-03-21mm: Add DEFINE_PAGE_VMA_WALK and DEFINE_FOLIO_VMA_WALKMatthew Wilcox (Oracle)1-26/+5
2022-03-21mm: Make compound_pincount always availableMatthew Wilcox (Oracle)1-4/+2
2022-03-16fs: Convert __set_page_dirty_buffers to block_dirty_folioMatthew Wilcox (Oracle)1-2/+2
2022-02-17mm/thp: shrink_page_list() avoid splitting VM_LOCKED THPHugh Dickins1-2/+5
2022-02-17mm/munlock: page migration needs mlock pagevec drainedHugh Dickins1-0/+4
2022-02-17mm/munlock: replace clear_page_mlock() by final clearanceHugh Dickins1-9/+0
2022-02-17mm/munlock: rmap call mlock_vma_page() munlock_vma_page()Hugh Dickins1-30/+26
2022-02-17mm/munlock: delete page_mlock() and all its worksHugh Dickins1-80/+0
2022-01-15mm/rmap: fix potential batched TLB flush raceHuang Ying1-7/+36
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+6
2021-11-06mm/rmap.c: avoid double faults migrating device private pagesAlistair Popple1-2/+6
2021-10-18mm/rmap: Add folio_mkclean()Matthew Wilcox (Oracle)1-6/+6
2021-09-27mm/memcg: Add folio_lruvec_lock() and similar functionsMatthew Wilcox (Oracle)1-1/+1
2021-09-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+4
2021-09-08mm: remove redundant compound_head() callingMuchun Song1-2/+4
2021-08-30Merge tag 'hole_punch_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-20/+21
2021-07-13mm: Protect operations adding pages to page cache with invalidate_lockJan Kara1-18/+19
2021-07-12mm/rmap: fix munlocking Anon THP with mlocked ptesHugh Dickins1-17/+22
2021-07-12mm: Fix comments mentioning i_mutexJan Kara1-3/+3
2021-07-11mm/rmap: try_to_migrate() skip zone_device !device_privateHugh Dickins1-3/+3
2021-07-11mm/rmap: fix new bug: premature return from page_mlock_one()Hugh Dickins1-6/+5
2021-07-11mm/rmap: fix old bug: munlocking THP missed other mlocksHugh Dickins1-5/+8
2021-07-11mm/rmap: fix comments left over from recent changesHugh Dickins1-6/+1
2021-07-01mm: device exclusive memory accessAlistair Popple1-0/+186
2021-07-01mm/rmap: split migration into its own functionAlistair Popple1-93/+274
2021-07-01mm/rmap: split try_to_munlock from try_to_unmapAlistair Popple1-17/+49
2021-07-01mm/swapops: rework swap entry manipulation codeAlistair Popple1-3/+7
2021-06-30mm: rmap: make try_to_unmap() void functionYang Shi1-11/+4
2021-06-16mm/thp: fix page_address_in_vma() on file THP tailsJue Wang1-4/+4
2021-06-16mm/thp: fix vma_address() if virtual address below file offsetHugh Dickins1-8/+8
2021-06-16mm/thp: try_to_unmap() use TTU_SYNC for safe splittingHugh Dickins1-1/+16
2021-05-07mm: fix some typos and code style problemsShijie Luo1-1/+1
2021-02-26mm/rmap: correct obsolete comment of page_get_anon_vma()Miaohe Lin1-2/+2
2021-02-26mm/rmap: use page_not_mapped in try_to_unmap()Miaohe Lin1-8/+3
2021-02-26mm/rmap: fix obsolete comment in __page_check_anon_rmap()Miaohe Lin1-2/+1
2021-02-26mm/rmap: remove unneeded semicolon in page_not_mapped()Miaohe Lin1-1/+1
2021-02-26mm/rmap: correct some obsolete comments of anon_vmaMiaohe Lin1-2/+2
2021-02-24mm: rmap: explicitly reset vma->anon_vma in unlink_anon_vmas()Li Xinhai1-1/+8
2021-02-24mm: memcontrol: convert NR_FILE_PMDMAPPED account to pagesMuchun Song1-2/+4
2021-02-24mm: memcontrol: convert NR_SHMEM_PMDMAPPED account to pagesMuchun Song1-4/+10
2021-02-24mm: memcontrol: convert NR_ANON_THPS account to pagesMuchun Song1-3/+3
2020-12-15mm/lru: revise the comments of lru_lockHugh Dickins1-2/+2
2020-12-15mm/rmap: stop store reordering issue on page->mappingAlex Shi1-1/+7
2020-12-15mm/rmap: always do TTU_IGNORE_ACCESSShakeel Butt1-9/+0
2020-11-14hugetlbfs: fix anon huge page migration raceMike Kravetz1-4/+1
2020-10-16mm/rmap: fix assumptions of THP sizeMatthew Wilcox (Oracle)1-5/+5
2020-09-05mm/rmap: fixup copying of soft dirty and uffd ptesAlistair Popple1-2/+7
2020-08-14mm/rmap: annotate a data race at tlb_flush_batchedQian Cai1-1/+1
2020-08-14mm: replace hpage_nr_pages with thp_nr_pagesMatthew Wilcox (Oracle)1-4/+4
2020-08-12hugetlbfs: remove call to huge_pte_alloc without i_mmap_rwsemMike Kravetz1-1/+1
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-6/+6
2020-06-03mm: memcontrol: switch to native NR_ANON_THPS counterJohannes Weiner1-3/+3
2020-06-03mm: memcontrol: switch to native NR_ANON_MAPPED counterJohannes Weiner1-18/+29
2020-04-07mm: prevent a warning when casting void* -> enumPalmer Dabbelt1-1/+1
2020-04-07userfaultfd: wp: support swap and page migrationPeter Xu1-0/+6
2020-04-07mm: remove CONFIG_TRANSPARENT_HUGE_PAGECACHEMatthew Wilcox (Oracle)1-1/+1
2020-04-07Revert "mm/rmap.c: reuse mergeable anon_vma as parent when fork"Li Xinhai1-13/+0
2020-04-02hugetlbfs: use i_mmap_rwsem for more pmd sharing synchronizationMike Kravetz1-1/+16
2020-04-02mm/vma: make is_vma_temporary_stack() available for general useAnshuman Khandual1-15/+1
2020-04-02mm/gup: page->hpage_pinned_refcount: exact pin counts for huge pagesJohn Hubbard1-0/+6
2019-12-01mm, thp: do not queue fully unmapped pages for deferred splitKirill A. Shutemov1-4/+10
2019-12-01mm/rmap.c: use VM_BUG_ON_PAGE() in __page_check_anon_rmap()Yang Shi1-4/+3
2019-12-01mm/rmap.c: fix outdated comment in page_get_anon_vma()Miles Chen1-3/+4
2019-12-01mm/rmap.c: reuse mergeable anon_vma as parent when forkWei Yang1-0/+13
2019-12-01mm/rmap.c: don't reuse anon_vma if we just want a copyWei Yang1-9/+15
2019-10-19mm: include <linux/huge_mm.h> for is_vma_temporary_stackBen Dooks1-0/+1
2019-09-24mm,thp: add read-only THP support for (non-shmem) FSSong Liu1-4/+8
2019-09-24mm: introduce compound_nr()Matthew Wilcox (Oracle)1-2/+1
2019-09-24mm: introduce page_size()Matthew Wilcox (Oracle)1-4/+2