aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-14Merge tag 'mm-stable-2024-03-13-20-04' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-9/+36
2024-03-11Merge tag 'vfs-6.9.super' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-11/+11
2024-03-06mm: swap: fix race between free_swap_and_cache() and swapoff()Ryan Roberts1-1/+12
2024-02-25swap: port block device usage to fileChristian Brauner1-11/+11
2024-02-23mm/swapfile:__swap_duplicate: drop redundant WRITE_ONCE on swap_map for err c...Barry Song1-1/+2
2024-02-22mm/zswap: invalidate zswap entry when swap entry freeChengming Zhou1-1/+0
2024-02-22mm: swap: enforce updating inuse_pages at the end of swap_range_free()Yosry Ahmed1-3/+15
2024-02-22mm/zswap: split zswap rb-treeChengming Zhou1-1/+1
2024-02-22mm/zswap: make sure each swapfile always have zswap rb-treeChengming Zhou1-3/+7
2024-02-20mm/swap: fix race when skipping swapcacheKairui Song1-0/+13
2024-01-10Merge tag 'header_cleanup-2024-01-10' of https://evilpiepirate.org/git/bcachefsLinus Torvalds1-0/+1
2023-12-29mm/swapfile: page_add_anon_rmap() -> folio_add_anon_rmap_pte()David Hildenbrand1-1/+1
2023-12-29mm: remove page_swap_info()Matthew Wilcox (Oracle)1-7/+1
2023-12-29mm: convert swap_readpage() to swap_read_folio()Matthew Wilcox (Oracle)1-1/+1
2023-12-29mm: convert swap_page_sector() to swap_folio_sector()Matthew Wilcox (Oracle)1-3/+3
2023-12-29mm: convert unuse_pte() to use a folio throughoutMatthew Wilcox (Oracle)1-22/+25
2023-12-29mm: remove PageAnonExclusive assertions in unuse_pte()Matthew Wilcox (Oracle)1-4/+0
2023-12-29mm: convert ksm_might_need_to_copy() to work on foliosMatthew Wilcox (Oracle)1-3/+5
2023-12-20plist: Split out plist_types.hKent Overstreet1-0/+1
2023-12-10mm/swapfile: replace kmap_atomic() with kmap_local_page()Fabio M. De Francesco1-17/+17
2023-10-28mm/swap: Convert to use bdev_open_by_dev()Jan Kara1-11/+12
2023-08-24mm/swap: inline folio_set_swap_entry() and folio_swap_entry()David Hildenbrand1-1/+1
2023-08-24mm/swap: stop using page->private on tail pages for THP_SWAPDavid Hildenbrand1-2/+2
2023-08-21merge mm-hotfixes-stable into mm-stable to pick up depended-upon changesAndrew Morton1-4/+4
2023-08-21mm/swapfile.c: use helper macro K()ZhangPeng1-6/+6
2023-08-21mm: kill frontswapJohannes Weiner1-23/+10
2023-08-18mm: make PTE_MARKER_SWAPIN_ERROR more generalAxel Rasmussen1-1/+1
2023-08-18mm: call arch_swap_restore() from unuse_pte()Peter Collingbourne1-0/+7
2023-08-18swap: stop add to avail list if swap is fullMa Wupeng1-1/+4
2023-08-18swap: cleanup duplicated WARN_ON in add_to_avail_listMa Wupeng1-3/+1
2023-08-04mm/swapfile: fix wrong swap entry type for hwpoisoned swapcache pageMiaohe Lin1-4/+4
2023-06-28Merge tag 'mm-stable-2023-06-24-19-15' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-63/+46
2023-06-23mm/swapfile: delete outdated pte_offset_map() commentHugh Dickins1-5/+0
2023-06-19mm: ptep_get() conversionRyan Roberts1-7/+13
2023-06-19mm/swapoff: allow pte_offset_map[_lock]() to failHugh Dickins1-18/+20
2023-06-12block: replace fmode_t with a block-specific type for block open flagsChristoph Hellwig1-1/+1
2023-06-12block: use the holder as indication for exclusive opensChristoph Hellwig1-4/+3
2023-06-09swap: comments get_swap_device() with usage ruleHuang Ying1-3/+9
2023-06-09swap: remove get/put_swap_device() in __swap_duplicate()Huang Ying1-4/+1
2023-06-09swap: remove __swp_swapcount()Huang Ying1-19/+1
2023-06-09swap: remove get/put_swap_device() in __swap_count()Huang Ying1-8/+2
2023-06-09mm: page_alloc: move pm_* function into powerKefeng Wang1-0/+1
2023-06-05block: introduce holder opsChristoph Hellwig1-1/+2
2023-04-16sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-1/+2
2023-04-05mm: return an ERR_PTR from __filemap_get_folioChristoph Hellwig1-2/+2
2023-04-05mm/swap: fix swap_info_struct race between swapoff and get_swap_pages()Rongwei Wang1-1/+2
2023-03-28mm: swap: remove unneeded cgroup_throttle_swaprate()Kefeng Wang1-3/+3
2023-02-23Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-6/+5
2023-02-20Merge tag 'for-6.3/block-2023-02-16' of git://git.kernel.dk/linuxLinus Torvalds1-1/+1
2023-02-10Merge branch 'mm-hotfixes-stable' into mm-stableAndrew Morton1-6/+14
2023-02-09mm/swapfile: remove pr_debug in get_swap_pages()Longlong Xia1-2/+0
2023-02-09mm: hwpoison: support recovery from ksm_might_need_to_copy()Kefeng Wang1-6/+14
2023-02-03blk-cgroup: store a gendisk to throttle in struct task_structChristoph Hellwig1-1/+1
2023-02-02block: remove ->rw_pageChristoph Hellwig1-1/+1
2023-01-31Sync mm-stable with mm-hotfixes-stable to pick up dependent patchesAndrew Morton1-0/+1
2023-01-31mm/swapfile: add cond_resched() in get_swap_pages()Longlong Xia1-0/+1
2023-01-18swapfile: get rid of volatile and avoid redundant readKairui Song1-3/+4
2022-12-13Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+1
2022-12-12Merge tag 'random-6.2-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-3/+2
2022-11-30mm: use pte markers for swap errorsPeter Xu1-1/+1
2022-11-22swapfile: fix soft lockup in scan_swap_map_slotsChen Wandun1-4/+4
2022-11-18treewide: use get_random_u32_inclusive() when possibleJason A. Donenfeld1-3/+2
2022-11-18treewide: use get_random_u32_below() instead of deprecated functionJason A. Donenfeld1-2/+2
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-88/+90
2022-10-03memcg: convert mem_cgroup_swap_full() to take a folioMatthew Wilcox (Oracle)1-1/+1
2022-10-03swapfile: convert unuse_pte_range() to use a folioMatthew Wilcox (Oracle)1-14/+19
2022-10-03swapfile: convert __try_to_reclaim_swap() to use a folioMatthew Wilcox (Oracle)1-11/+11
2022-10-03swapfile: convert try_to_unuse() to use a folioMatthew Wilcox (Oracle)1-11/+11
2022-10-03mm/swap: convert put_swap_page() to put_swap_folio()Matthew Wilcox (Oracle)1-2/+2
2022-10-03mm/swapfile: convert try_to_free_swap() to folio_free_swap()Matthew Wilcox (Oracle)1-14/+18
2022-10-03mm/swapfile: remove page_swapcount()Matthew Wilcox (Oracle)1-33/+13
2022-09-26mm/swapfile: use vma iterator instead of vma linked listLiam R. Howlett1-1/+3
2022-09-26mm/swap: cache swap migration A/D bits supportPeter Xu1-0/+8
2022-09-26mm/swap: cache maximum swapfile size when init swapPeter Xu1-2/+5
2022-09-26blk-cgroup: pass a gendisk to blkcg_schedule_throttleChristoph Hellwig1-1/+1
2022-07-03mm/swap: convert delete_from_swap_cache() to take a folioMatthew Wilcox (Oracle)1-1/+1
2022-07-03mm/swap: convert try_to_free_swap to use a folioMatthew Wilcox (Oracle)1-12/+11
2022-07-03mm/swapfile: fix possible data races of inuse_pagesMiaohe Lin1-4/+4
2022-05-27Merge tag 'mm-stable-2022-05-27' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-3/+18
2022-05-27mm/swapfile: fix lost swap bits in unuse_pte()Miaohe Lin1-3/+7
2022-05-27mm/swapfile: unuse_pte can map random data if swap read failsMiaohe Lin1-0/+11
2022-05-26Merge tag 'mm-stable-2022-05-25' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-65/+70
2022-05-24Merge tag 'folio-5.19' of git://git.infradead.org/users/willy/pagecacheLinus Torvalds1-1/+1
2022-05-19mm/swap: fix comment about swap extentMiaohe Lin1-9/+6
2022-05-19mm/swap: clean up the comment of find_next_to_unuseMiaohe Lin1-3/+3
2022-05-19mm/swap: add helper swap_offset_available()Miaohe Lin1-16/+18
2022-05-19mm/swap: make page_swapcount and __lru_add_drain_all staticMiaohe Lin1-1/+1
2022-05-19mm/swap: remove unneeded p != NULL check in __swap_duplicateMiaohe Lin1-2/+1
2022-05-19mm/swap: print bad swap offset entry in get_swap_deviceMiaohe Lin1-0/+1
2022-05-19mm/swap: fold __swap_info_get() into its sole callerMiaohe Lin1-18/+6
2022-05-13swap: turn get_swap_page() into folio_alloc_swap()Matthew Wilcox (Oracle)1-8/+9
2022-05-09mm: introduce ->swap_rw and use it for reads from SWP_FS_OPS swap-spaceNeilBrown1-0/+5
2022-05-09mm: move responsibility for setting SWP_FS_OPS to ->swap_activateNeilBrown1-7/+3
2022-05-09mm: create new mm/swap.h header fileNeilBrown1-0/+1
2022-05-09mm/swap: remember PG_anon_exclusive via a swp pte bitDavid Hildenbrand1-1/+12
2022-05-09mm/page-flags: reuse PG_mappedtodisk as PG_anon_exclusive for PageAnon() pagesDavid Hildenbrand1-0/+4
2022-05-09mm/rmap: drop "compound" parameter from page_add_new_anon_rmap()David Hildenbrand1-1/+1
2022-05-09mm/rmap: remove do_page_add_anon_rmap()David Hildenbrand1-1/+1
2022-05-09mm,fs: Remove aops->readpageMatthew Wilcox (Oracle)1-1/+1
2022-05-09fs: Introduce aops->read_folioMatthew Wilcox (Oracle)1-1/+1
2022-05-02blk-cgroup: remove unneeded includes from <linux/blk-cgroup.h>Christoph Hellwig1-0/+1
2022-04-17block: decouple REQ_OP_SECURE_ERASE from REQ_OP_DISCARDChristoph Hellwig1-3/+3
2022-04-17block: remove QUEUE_FLAG_DISCARDChristoph Hellwig1-15/+2
2022-04-17block: add a bdev_stable_writes helperChristoph Hellwig1-1/+1
2022-04-17block: add a bdev_nonrot helperChristoph Hellwig1-2/+2
2022-04-17mm: use bdev_is_zoned in claim_swapfileChristoph Hellwig1-1/+1
2022-03-24mm/swapfile: remove stale reuse_swap_page()David Hildenbrand1-104/+0
2022-03-22userfaultfd: provide unmasked address on page-faultNadav Amit1-0/+1
2022-01-22mm: mark swap_lock and swap_active_head staticChristoph Hellwig1-2/+2
2022-01-22mm: simplify try_to_unuseChristoph Hellwig1-60/+23
2022-01-22frontswap: simplify frontswap_initChristoph Hellwig1-1/+2
2022-01-15mm: remove the total_mapcount argument from page_trans_huge_mapcount()Matthew Wilcox (Oracle)1-1/+1
2022-01-15mm: remove the total_mapcount argument from page_trans_huge_map_swapcount()Matthew Wilcox (Oracle)1-20/+12
2022-01-15mm: remove last argument of reuse_swap_page()Matthew Wilcox (Oracle)1-7/+1
2022-01-15mm: change page type prior to adding page table entryPasha Tatashin1-2/+2
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-3/+3
2021-11-06mm/swapfile: fix an integer overflow in swap_show()Rafael Aquini1-2/+2
2021-11-06mm/swapfile: remove needless request_queue NULL pointer checkXu Wang1-1/+1
2021-11-01Merge tag 'for-5.16/block-2021-10-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2021-10-18mm: don't include <linux/blk-cgroup.h> in <linux/backing-dev.h>Christoph Hellwig1-1/+1
2021-09-27mm/util: Add folio_mapping() and folio_file_mapping()Matthew Wilcox (Oracle)1-4/+4
2021-09-03mm, memcg: inline swap-related functions to improve disabled memcg configSuren Baghdasaryan1-4/+1
2021-09-03mm, memcg: add mem_cgroup_disabled checks in vmpressure and swap-related func...Suren Baghdasaryan1-0/+3
2021-09-03fs, mm: fix race in unlinking swapfileHugh Dickins1-0/+6
2021-07-01mm: fix spelling mistakesZhen Lei1-1/+1
2021-06-29mm, swap: remove unnecessary smp_rmb() in swap_type_to_swap_info()Huang Ying1-9/+6
2021-06-29mm/swapfile: move get_swap_page_of_type() under CONFIG_HIBERNATIONMiaohe Lin1-52/+31
2021-06-29mm/swapfile: use percpu_ref to serialize against concurrent swapoffMiaohe Lin1-30/+49
2021-06-16mm/swap: fix pte_same_as_swp() not removing uffd-wp bit when comparePeter Xu1-1/+1
2021-05-05mm/mempool: minor coding style tweaksZhiyuan Dai1-2/+2
2021-03-02swap: fix swapfile read/write offsetJens Axboe1-0/+13
2021-02-24mm/swapfile.c: fix debugging information problemStephen Zhang1-4/+4
2021-02-21Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-5/+6
2021-02-10mm: simplify swapdev_blockChristoph Hellwig1-27/+3
2021-01-27mm: only make map_swap_entry available for CONFIG_HIBERNATIONJens Axboe1-1/+5
2021-01-27mm: remove get_swap_bioChristoph Hellwig1-10/+0
2021-01-21mm: Use static initialisers for immutable fields of 'struct vm_fault'Will Deacon1-5/+6
2020-12-15mm: fix a race on nr_swap_pagesZhaoyang Huang1-5/+6
2020-12-15mm/swapfile.c: use memset to fill the swap_map with SWAP_HAS_CACHEMiaohe Lin1-5/+2
2020-12-15mm/swapfile.c: remove unnecessary out label in __swap_duplicate()Miaohe Lin1-3/+2
2020-12-15mm/swapfile.c: use helper function swap_count() in add_swap_count_continuation()Miaohe Lin1-1/+1
2020-12-06mm/swapfile: do not sleep with a spin lock heldQian Cai1-1/+3
2020-10-13mm/swapfile.c: fix potential memory leak in sys_swaponMiaohe Lin1-1/+3
2020-10-13mm/swapfile.c: remove unnecessary goto out in _swap_info_get()Miaohe Lin1-1/+0
2020-10-13mm: remove activate_page() from unuse_pte()Yu Zhao1-5/+0
2020-10-13swap: rename SWP_FS to SWAP_FS_OPS to avoid ambiguityGao Xiang1-1/+1
2020-10-13Merge tag 'block-5.10-2020-10-12' of git://git.kernel.dk/linux-blockLinus Torvalds1-23/+26
2020-10-12Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-0/+2
2020-09-26mm, THP, swap: fix allocating cluster for swapfile by mistakeGao Xiang1-1/+1
2020-09-24bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flagChristoph Hellwig1-1/+1
2020-09-24bdi: remove BDI_CAP_SYNCHRONOUS_IOChristoph Hellwig1-1/+1
2020-09-23mm: split swap_type_ofChristoph Hellwig1-18/+21
2020-09-23mm: cleanup claim_swapfileChristoph Hellwig1-3/+3
2020-09-04mm: Add arch hooks for saving/restoring tagsSteven Price1-0/+2
2020-08-14mm/swapfile: fix and annotate various data racesQian Cai1-13/+18
2020-08-14mm: replace hpage_nr_pages with thp_nr_pagesMatthew Wilcox (Oracle)1-1/+1
2020-08-12mm/swapcache: support to handle the shadow entriesJoonsoo Kim1-0/+2
2020-08-12mm/vmscan: protect the workingset on anonymous LRUJoonsoo Kim1-1/+1
2020-07-01block: remove the bd_queue field from struct block_deviceChristoph Hellwig1-1/+1
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-2/+2
2020-06-09mm: don't include asm/pgtable.h if linux/mm.h is already includedMike Rapoport1-1/+0
2020-06-03mm: memcontrol: charge swapin pages on instantiationJohannes Weiner1-6/+0
2020-06-03mm: memcontrol: convert anon and file-thp to new mem_cgroup_charge() APIJohannes Weiner1-5/+1
2020-06-03mm: memcontrol: switch to native NR_ANON_MAPPED counterJohannes Weiner1-2/+2
2020-06-03mm: memcontrol: move out cgroup swaprate throttlingJohannes Weiner1-7/+7
2020-06-03mm: memcontrol: drop @compound parameter from memcg charging APIJohannes Weiner1-5/+4
2020-06-02mm: swapfile: fix /proc/swaps heading and Size/Used/Priority alignmentRandy Dunlap1-4/+8
2020-06-02swap: reduce lock contention on swap cache from swap slots allocationHuang Ying1-5/+56
2020-06-02mm/swapfile.c: use prandom_u32_max()Huang Ying1-1/+1
2020-06-02mm/swapfile.c: __swap_entry_free() always free 1 entryWei Yang1-4/+5
2020-06-02swap: try to scan more free slots even when fragmentedHuang Ying1-0/+22
2020-06-02mm/swapfile.c: omit a duplicate code by compare tmp and max firstWei Yang1-10/+8
2020-06-02mm/swapfile.c: tmp is always smaller than maxWei Yang1-1/+1
2020-06-02mm/swapfile.c: found_free could be represented by (tmp < max)Wei Yang1-8/+3
2020-06-02mm/swapfile.c: remove the extra check in scan_swap_map_slots()Wei Yang1-3/+0
2020-06-02mm/swapfile.c: simplify the calculation of n_goalWei Yang1-5/+1
2020-06-02mm/swapfile.c: remove the unnecessary goto for SSD caseWei Yang1-5/+1
2020-06-02mm/swapfile.c: explicitly show ssd/non-ssd is handled mutually exclusiveWei Yang1-7/+3
2020-06-02mm/swapfile.c: offset is only used when there is more slotsWei Yang1-3/+1
2020-06-02mm: swap: properly update readahead statistics in unuse_pte_range()Andrea Righi1-4/+8
2020-06-02mm/swapfile: use list_{prev,next}_entry() instead of open-codingchenqiwu1-10/+6
2020-04-07proc: faster open/read/close with "permanent" filesAlexey Dobriyan1-0/+1
2020-04-02mm/swapfile: fix data races in try_to_unuse()Qian Cai1-4/+4
2020-04-02mm/swapfile.c: fix comments for swapcache_prepareChen Wandun1-1/+1
2020-03-29mm/swapfile.c: move inode_lock out of claim_swapfileNaohiro Aota1-21/+20
2020-02-21mm/swapfile.c: fix a comment in sys_swapon()Christoph Hellwig1-1/+1
2020-02-04proc: convert everything to "struct proc_ops"Alexey Dobriyan1-7/+7
2020-01-31mm/swapfile.c: swap_next should increase position indexVasily Averin1-1/+1
2019-12-01mm, swap: disallow swapon() on zoned block devicesNaohiro Aota1-0/+7
2019-08-20vfs: don't allow writes to swap filesDarrick J. Wong1-1/+11
2019-08-20mm: set S_SWAPFILE on blockdev swap devicesDarrick J. Wong1-16/+15
2019-07-12mm, swap: use rbtree for swap_extentAaron Lu1-62/+75
2019-07-12mm, swap: fix race between swapoff and some swap operationsHuang Ying1-32/+122
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-04-19mm: swapoff: shmem_unuse() stop eviction without igrab()Hugh Dickins1-6/+5
2019-04-19mm: swapoff: take notice of completion soonerHugh Dickins1-8/+11
2019-04-19mm: swapoff: remove too limiting SWAP_UNUSE_MAX_TRIESHugh Dickins1-8/+8
2019-03-05mm/swapfile.c: use struct_size() in kvzalloc()Gustavo A. R. Silva1-2/+1
2019-03-05numa: make "nr_node_ids" unsigned intAlexey Dobriyan1-1/+1
2019-03-05mm, swap: bounds check swap_info array accesses to avoid NULL derefsDaniel Jordan1-22/+29