]> Pileus Git - ~andy/linux/commit
mm: frontswap: split frontswap_shrink further to simplify locking
authorSasha Levin <levinsasha928@gmail.com>
Sun, 10 Jun 2012 10:51:03 +0000 (12:51 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 11 Jun 2012 19:31:33 +0000 (15:31 -0400)
commit69217b4cd044671b6dddcd9d33c8e4fdfd295ae3
treed13dab9972d7541cca1b2fd81efcb332e3d4900d
parentf116695a500cdd84cbeac68bc373e98ae729c24b
mm: frontswap: split frontswap_shrink further to simplify locking

Split frontswap_shrink to simplify the locking in the original code.

Also, assert that the function that was split still runs under the
swap spinlock.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
mm/frontswap.c