diff options
| author | Sasha Levin <[email protected]> | 2012-06-10 10:51:02 +0000 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <[email protected]> | 2012-06-11 19:30:57 +0000 |
| commit | f116695a500cdd84cbeac68bc373e98ae729c24b (patch) | |
| tree | e0af3b569d8b50a1a03612a57fec02f9846e1deb /lib/mpi/mpiutil.c | |
| parent | mm: frontswap: split out __frontswap_curr_pages (diff) | |
| download | kernel-f116695a500cdd84cbeac68bc373e98ae729c24b.tar.gz kernel-f116695a500cdd84cbeac68bc373e98ae729c24b.zip | |
mm: frontswap: split out __frontswap_unuse_pages
An attempt at making frontswap_shrink shorter and more readable. This patch
splits out walking through the swap list to find an entry with enough
pages to unuse.
Also, assert that the internal __frontswap_unuse_pages is called under swap
lock, since that part of code was previously directly happen inside the lock.
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
