]> Git Repo - linux.git/commit - include/linux/swap.h
vmscan: free swap space on swap-in/activation
authorRik van Riel <[email protected]>
Sun, 19 Oct 2008 03:26:23 +0000 (20:26 -0700)
committerLinus Torvalds <[email protected]>
Mon, 20 Oct 2008 15:50:25 +0000 (08:50 -0700)
commit68a22394c286a2daf06ee8d65d8835f738faefa5
tree1fb91d5bf57a1f6d1cabaac0a6f5d86060ebecb5
parentf04e9ebbe4909f9a41efd55149bc353299f4e83b
vmscan: free swap space on swap-in/activation

If vm_swap_full() (swap space more than 50% full), the system will free
swap space at swapin time.  With this patch, the system will also free the
swap space in the pageout code, when we decide that the page is not a
candidate for swapout (and just wasting swap space).

Signed-off-by: Rik van Riel <[email protected]>
Signed-off-by: Lee Schermerhorn <[email protected]>
Signed-off-by: MinChan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/pagevec.h
include/linux/swap.h
mm/swap.c
mm/swapfile.c
mm/vmscan.c
This page took 0.056808 seconds and 4 git commands to generate.