aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
AgeCommit message (Expand)AuthorFilesLines
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
2019-03-05mm: rid swapoff of quadratic complexityVineeth Remanan Pillai1-270/+163
2018-12-28mm, swap: fix swapoff with KSM pagesHuang Ying1-1/+2
2018-12-28mm/swap: use nr_node_ids for avail_lists in swap_info_structAaron Lu1-1/+2
2018-11-18mm/swapfile.c: use kvzalloc for swap_info_struct allocationVasily Averin1-3/+3
2018-10-26mm: export add_swap_extent()Omar Sandoval1-0/+1
2018-10-26mm: split SWP_FILE into SWP_ACTIVATED and SWP_FSOmar Sandoval1-5/+8
2018-10-26mm/swapfile.c: clear si->swap_map[] in swap_free_cluster()Huang Ying1-3/+1
2018-10-26mm/swapfile.c: call free_swap_slot() in __swap_entry_free()Huang Ying1-6/+4
2018-10-26mm/swapfile.c: use __try_to_reclaim_swap() in free_swap_and_cache()Huang Ying1-32/+25
2018-08-22mm/swapfile.c: put_swap_page: share more between huge/normal code pathHuang Ying1-10/+10
2018-08-22mm/swapfile.c: add __swap_entry_free_locked()Huang Ying1-6/+14
2018-08-22mm, swap, get_swap_pages: use entry_size instead of cluster in parameterHuang Ying1-8/+8
2018-08-22mm/swapfile.c: unify normal/huge code path in put_swap_page()Huang Ying1-46/+37
2018-08-22mm/swapfile.c: unify normal/huge code path in swap_page_trans_huge_swapped()Huang Ying1-4/+3
2018-08-22mm/swapfile.c: use swap_count() in swap_page_trans_huge_swapped()Huang Ying1-2/+2
2018-08-22mm/swapfile.c: replace some #ifdef with IS_ENABLED()Huang Ying1-40/+20
2018-08-22mm: swap: add comments to lock_cluster_or_swap_info()Huang Ying1-2/+7
2018-08-14Merge tag 'for-4.19/block-20180812' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+31
2018-07-09memcontrol: schedule throttling if we are congestedTejun Heo1-0/+31
2018-06-20x86/speculation/l1tf: Limit swap file size to MAX_PA/2Andi Kleen1-16/+30
2018-06-15mm/swapfile.c: fix swap_count comment about nonexistent SWAP_HAS_CONTDaniel Jordan1-1/+1
2018-06-12treewide: kvzalloc() -> kvcalloc()Kees Cook1-2/+3
2018-05-25mm: fix nr_rotate_swap leak in swapon() error caseOmar Sandoval1-1/+6
2018-04-11mm/swapfile.c: make pointer swap_avail_heads staticColin Ian King1-1/+1
2018-04-11swap: divide-by-zero when zero length swap file on ssdTom Abraham1-0/+4
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-2/+2
2017-11-27ipc, kernel, mm: annotate ->poll() instancesAl Viro1-1/+1
2017-11-15mm: swap: SWP_SYNCHRONOUS_IO: skip swapcache only if swapped page has no othe...Minchan Kim1-0/+7
2017-11-15mm, swap: skip swapcache for swapin of synchronous deviceMinchan Kim1-4/+7
2017-11-15mm, swap: introduce SWP_SYNCHRONOUS_IOMinchan Kim1-0/+3
2017-11-03mm, swap: fix race between swap count continuation operationsHuang Ying1-6/+17
2017-09-08mm/swapfile.c: fix swapon frontswap_map memory leak on errorDavid Rientjes1-0/+1
2017-09-08mm: kvfree the swap cluster info if the swap file is unsatisfactoryDarrick J. Wong1-1/+1
2017-09-06swap: choose swap device according to numa nodeAaron Lu1-26/+94
2017-09-06mm, swap: don't use VMA based swap readahead if HDD is used as swapHuang Ying1-1/+7
2017-09-06mm, THP, swap: support splitting THP for THP swap outHuang Ying1-0/+15
2017-09-06mm, THP, swap: don't allocate huge cluster for file backed swap deviceHuang Ying1-3/+4
2017-09-06mm, THP, swap: make reuse_swap_page() works for THP swapped outHuang Ying1-9/+93
2017-09-06mm, THP, swap: support to reclaim swap space for THP swapped outHuang Ying1-7/+71
2017-09-06mm, THP, swap: support to clear swap cache flag for THP swapped outHuang Ying1-7/+25
2017-07-10swap: add block io poll in swapin pathShaohua Li1-1/+1
2017-07-06mm/swapfile.c: sort swap entries before freeHuang Ying1-0/+16
2017-07-06mm, THP, swap: unify swap slot free functions to put_swap_pageMinchan Kim1-2/+14
2017-07-06mm, THP, swap: delay splitting THP during swap outHuang Ying1-69/+190
2017-05-08mm, swap: use kvzalloc to allocate some swap data structuresHuang Ying1-4/+6
2017-05-03mm/swapfile.c: fix swap space leak in error path of swap_free_entries()Huang Ying1-2/+0
2017-05-03mm, swap: avoid lock swap_avail_lock when held cluster lockHuang Ying1-3/+3
2017-05-03mm, swap: improve readability via make spin_lock/unlock balancedHuang Ying1-1/+1
2017-05-03mm, swap: Fix a race in free_swap_and_cache()Huang Ying1-9/+16
2017-03-09mm: convert generic code to 5-level pagingKirill A. Shutemov1-3/+23
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-02-27mm: use mmget_not_zero() helperVegard Nossum1-1/+1
2017-02-27mm: add new mmget() helperVegard Nossum1-5/+5
2017-02-22mm/swap: enable swap slots cache usageTim Chen1-0/+7
2017-02-22mm/swap: add cache for swap slots allocationTim Chen1-11/+15
2017-02-22mm/swap: free swap slots in batchTim Chen1-61/+94
2017-02-22mm/swap: allocate swap slots in batchesTim Chen1-25/+111
2017-02-22mm/swap: skip readahead for unreferenced swap slotsTim Chen1-6/+41
2017-02-22mm/swap: split swap cache into 64MB trunksHuang, Ying1-2/+14
2017-02-22mm/swap: add cluster lockHuang, Ying1-42/+173
2017-02-22mm/swap: fix kernel message in swap_info_get()Huang, Ying1-4/+4
2017-01-10mm: support anonymous stable pageMinchan Kim1-1/+19
2016-12-12mm: add three more cond_resched() in swapoffHugh Dickins1-7/+6
2016-11-11swapfile: fix memory corruption via malformed swapfileJann Horn1-0/+2
2016-10-07mm, swap: use offset of swap entry as key of swap cacheHuang Ying1-2/+2
2016-10-07mm, swap: add swap_cluster_listHuang Ying1-70/+63
2016-09-19mm: fix the page_swap_info() BUG_ON checkSantosh Shilimkar1-1/+0
2016-07-26mm, frontswap: convert frontswap_enabled to static keyVlastimil Babka1-1/+1
2016-05-12mm: thp: calculate the mapcount correctly for THP pages during WP faultsAndrea Arcangeli1-6/+7
2016-04-04mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macrosKirill A. Shutemov1-6/+6
2016-03-21Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linuxLinus Torvalds1-0/+6
2016-03-17mm: coalesce split stringsJoe Perches1-2/+1
2016-02-09Merge tag 'drm-intel-next-2016-01-24' of git://anongit.freedesktop.org/drm-in...Dave Airlie1-0/+6
2016-01-22wrappers for ->i_mutex accessAl Viro1-6/+6
2016-01-20mm: free swap cache aggressively if memcg swap is fullVladimir Davydov1-1/+1
2016-01-20mm: memcontrol: charge swap to cgroup2Vladimir Davydov1-3/+1
2016-01-15mm: make swapoff more robust against soft dirtyHugh Dickins1-14/+4
2016-01-15mm, thp: adjust conditions when we can reuse the page on WP faultKirill A. Shutemov1-0/+3
2016-01-15memcg: adjust to support new THP refcountingKirill A. Shutemov1-4/+5
2016-01-15rmap: add argument to charge compound pageKirill A. Shutemov1-2/+2
2016-01-14mm/swapfile.c: use list_for_each_entry_safe in free_swap_count_continuationsGeliang Tang1-5/+4
2016-01-14mm/swapfile.c: use list_{next,first}_entryGeliang Tang1-10/+4
2016-01-05mm: Export nr_swap_pagesChris Wilson1-0/+6
2015-09-08mm: /proc/pid/smaps:: show proportional swap share of the mappingMinchan Kim1-0/+42
2015-08-21mm: fix potential data race in SyS_swaponHugh Dickins1-18/+7
2015-06-23vfs: add seq_file_path() helperMiklos Szeredi1-1/+1
2015-04-15mm: remove rest of ACCESS_ONCE() usagesJason Low1-1/+1
2014-12-10mm: page_cgroup: rename file to mm/swap_cgroup.cJohannes Weiner1-1/+1
2014-08-08mm: memcontrol: rewrite uncharge APIJohannes Weiner1-5/+2
2014-08-08mm: memcontrol: rewrite charge APIJohannes Weiner1-6/+8
2014-06-04mm/swapfile.c: delete the "last_in_cluster < scan_base" loop in the body of s...Chen Yucong1-26/+3
2014-06-04swap: change swap_list_head to plist, add swap_avail_headDan Streetman1-54/+91
2014-06-04swap: change swap_info singly-linked list to list_headDan Streetman1-99/+72
2014-02-06mm/swap: fix race on swap_info reuse between swapoff and swaponWeijie Yang1-1/+10
2014-01-23mm/swapfile.c: do not skip lowest_bit in scan_swap_map() scan loopJamie Liu1-1/+2
2014-01-23mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGESasha Levin1-4/+4
2013-11-13frontswap: enable call to invalidate area on swapoffKrzysztof Kozlowski1-1/+1
2013-11-13mm/swapfile.c: fix comment typosSeth Jennings1-7/+7
2013-10-16swap: fix set_blocksize race during swapon/swapoffKrzysztof Kozlowski1-1/+3
2013-09-11swap: make cluster allocation per-cpuShaohua Li1-34/+91
2013-09-11swap: fix races exposed by swap discardShaohua Li1-4/+27
2013-09-11swap: make swap discard asyncShaohua Li1-78/+114
2013-09-11swap: change block allocation algorithm for SSDShaohua Li1-38/+250
2013-09-11mm/swapfile.c: convert to pr_foo()Andrew Morton1-17/+13
2013-09-11swap: warn when a swap area overflows the maximum sizeRaymond Jennings1-2/+10
2013-08-13mm: save soft-dirty bits on swapped pagesCyrill Gorcunov1-2/+17
2013-07-03swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGESRafael Aquini1-5/+50
2013-06-12frontswap: fix incorrect zeroing and allocation size for frontswap_mapAkinobu Mita1-1/+1
2013-04-30frontswap: get rid of swap_lock dependencyMinchan Kim1-8/+9
2013-04-29mm/: rename random32() to prandom_u32()Akinobu Mita1-1/+1
2013-02-26Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2013-02-23mm,ksm: swapoff might need to copyHugh Dickins1-1/+14
2013-02-23swap: add per-partition lock for swapfileShaohua Li1-46/+108
2013-02-23swap: make each swap partition have one address_spaceShaohua Li1-2/+3
2013-02-22new helper: file_inode(file)Al Viro1-1/+1
2012-12-11mm, oom: fix race when specifying a thread as the oom originDavid Rientjes1-3/+2
2012-12-11mm, oom: change type of oom_score_adj to shortDavid Rientjes1-1/+1
2012-12-11mm: do not call frontswap_init() during swapoffCesar Eduardo Barros1-1/+1
2012-12-11mm: refactor reinsert of swap_info in sys_swapoff()Cesar Eduardo Barros1-9/+17
2012-11-16swapfile: fix name leak in swapoffXiaotian Feng1-2/+2
2012-10-12vfs: make path_openat take a struct filename pointerJeff Layton1-2/+2
2012-10-12vfs: define struct filename and have getname() return itJeff Layton1-6/+5
2012-07-31mm: swapfile: clean up unuse_pte race handlingJohannes Weiner1-2/+1
2012-07-31swapfile: avoid dereferencing bd_disk during swap_entry_free for network storageMel Gorman1-4/+6
2012-07-31mm: swap: implement generic handler for swap_activateMel Gorman1-86/+5
2012-07-31mm: add support for a filesystem to activate swap files and use direct_IO for...Mel Gorman1-2/+21
2012-07-31mm: methods for teaching filesystems about PG_swapcache pagesMel Gorman1-0/+26
2012-06-15swap: fix shmem swapping when more than 8 areasHugh Dickins1-8/+4
2012-06-04Merge tag 'stable/frontswap.v16-tag' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-13/+41
2012-05-29memcg: fix/change behavior of shared anon at moving taskKAMEZAWA Hiroyuki1-31/+0
2012-05-29shmem: replace page if mapping excludes its zoneHugh Dickins1-1/+1
2012-05-15mm: frontswap: core swap subsystem hooks and headersDan Magenheimer1-13/+41
2012-03-28swapon: check validity of swap_flagsHugh Dickins1-0/+3
2012-03-22Merge branch 'akpm' (Andrew's patch-bomb)Linus Torvalds1-56/+2
2012-03-21swap: don't do discard if no discard option addedShaohua Li1-1/+1
2012-03-21mm: make swapin readahead skip over holesRik van Riel1-52/+0
2012-03-21mm: thp: fix pmd_bad() triggering in code paths holding mmap_sem read modeAndrea Arcangeli1-3/+1
2012-03-21Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/...Linus Torvalds1-1/+3
2012-03-20mm: remove the second argument of k[un]map_atomic()Cong Wang1-15/+15
2012-02-14mm: collapse security_vm_enough_memory() variants into a single functionAl Viro1-1/+3
2012-01-12mm: unify remaining mem_cont, mem, etc. variable names to memcgJohannes Weiner1-4/+5
2012-01-10mm: avoid livelock on !__GFP_FS allocationsMel Gorman1-3/+3
2011-11-06Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-1/+0
2011-10-31oom: fix race while temporarily setting current's oom_score_adjDavid Rientjes1-1/+1
2011-10-31mm: delete various needless include <linux/module.h>Paul Gortmaker1-1/+0
2011-08-03mm: let swap use exceptional entriesHugh Dickins1-8/+12
2011-07-20fs: seq_file - add event counter to simplify poll() supportKay Sievers1-21/+8
2011-06-27mm: move shmem prototypes to shmem_fs.hHugh Dickins1-1/+1
2011-05-25oom: replace PF_OOM_ORIGIN with toggling oom_score_adjDavid Rientjes1-2/+4
2011-03-24Merge branch 'for-2.6.39/core' of git://git.kernel.dk/linux-2.6-blockLinus Torvalds1-37/+0
2011-03-23memcg: fix ugly initialization of return value is in callerKAMEZAWA Hiroyuki1-1/+1
2011-03-23sys_swapon: fix inode lockingCesar Eduardo Barros1-2/+5
2011-03-22mm: remove inline from scan_swap_map()Cesar Eduardo Barros1-2/+2
2011-03-22sys_swapon: separate final enabling of the swapfileCesar Eduardo Barros1-42/+42
2011-03-22sys_swapoff: change order to match sys_swaponCesar Eduardo Barros1-3/+4
2011-03-22sys_swapon: move printk outside lockCesar Eduardo Barros1-7/+8
2011-03-22sys_swapon: remove nr_good_pages variableCesar Eduardo Barros1-5/+3
2011-03-22sys_swapon: simplify error flow in setup_swap_map_and_extents()Cesar Eduardo Barros1-14/+5
2011-03-22sys_swapon: separate parsing of bad blocks and extentsCesar Eduardo Barros1-29/+54
2011-03-22sys_swapon: call swap_cgroup_swapon() earlierCesar Eduardo Barros1-4/+4
2011-03-22sys_swapon: simplify error flow in read_swap_header()Cesar Eduardo Barros1-9/+6
2011-03-22sys_swapon: separate parsing of swapfile headerCesar Eduardo Barros1-62/+78
2011-03-22sys_swapon: move setting of swapfilepages near useCesar Eduardo Barros1-2/+1
2011-03-22sys_swapon: simplify error flow in claim_swapfile()Cesar Eduardo Barros1-14/+6
2011-03-22sys_swapon: separate bdev claim and inode lockCesar Eduardo Barros1-25/+39
2011-03-22sys_swapon: use a single error labelCesar Eduardo Barros1-4/+3
2011-03-22sys_swapon: do only cleanup in the cleanup blocksCesar Eduardo Barros1-4/+3
2011-03-22sys_swapon: remove bdev variableCesar Eduardo Barros1-10/+9
2011-03-22sys_swapon: move setting of error nearer useCesar Eduardo Barros1-5/+6
2011-03-22sys_swapon: remove did_down variableCesar Eduardo Barros1-6/+2
2011-03-22sys_swapon: remove initial value of name variableCesar Eduardo Barros1-1/+1
2011-03-22sys_swapon: simplify error flow in alloc_swap_info()Cesar Eduardo Barros1-6/+1
2011-03-22sys_swapon: simplify error return from swap_info allocationCesar Eduardo Barros1-4/+2
2011-03-22sys_swapon: separate swap_info allocationCesar Eduardo Barros1-20/+37
2011-03-22sys_swapon: do not depend on "type" after allocationCesar Eduardo Barros1-5/+5
2011-03-22sys_swapon: remove changelog from function commentCesar Eduardo Barros1-5/+0
2011-03-22sys_swapon: use vzalloc() instead of vmalloc/memsetCesar Eduardo Barros1-2/+1
2011-03-22mm: swap: unlock swapfile inode mutex before closing file on bad swapfilesMel Gorman1-1/+6
2011-03-10Merge branch 'for-2.6.39/stack-plug' into for-2.6.39/coreJens Axboe1-37/+0
2011-03-10block: remove per-queue pluggingJens Axboe1-37/+0
2011-02-24mm: fix refcounting in swaponMiklos Szeredi1-1/+1
2011-01-13thp: split_huge_page pagingAndrea Arcangeli1-0/+2
2010-11-13block: make blkdev_get/put() handle exclusive accessTejun Heo1-3/+4
2010-10-26/proc/swaps: support pollingKay Sievers1-1/+48
2010-10-19Merge branch 'v2.6.36-rc8' into for-2.6.37/barrierJens Axboe1-77/+43
2010-09-16block: remove BLKDEV_IFL_WAITChristoph Hellwig1-3/+3
2010-09-10swap: do not send discards as barriersChristoph Hellwig1-6/+3
2010-09-09swap: discard while swapping only if SWAP_FLAG_DISCARDHugh Dickins1-1/+1
2010-09-09swap: do not send discards as barriersChristoph Hellwig1-6/+3
2010-09-09swap: prevent reuse during hibernationHugh Dickins1-4/+20
2010-09-09swap: revert special hibernation allocationHugh Dickins1-72/+22
2010-08-09hibernation: freeze swap at hibernationKAMEZAWA Hiroyuki1-22/+72
2010-08-09mm: fix corruption of hibernation caused by reusing swap during image savingKAMEZAWA Hiroyuki1-2/+4
2010-05-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6Linus Torvalds1-0/+5
2010-05-18swap: Add swap slot free callback to block_device_operationsNitin Gupta1-0/+4
2010-05-18swap: Add flag to identify block swap devicesNitin Gupta1-0/+1