]> git.baikalelectronics.ru Git - kernel.git/commit
mm: frontswap: split out __frontswap_curr_pages
authorSasha Levin <levinsasha928@gmail.com>
Sun, 10 Jun 2012 10:51:01 +0000 (12:51 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 11 Jun 2012 19:30:47 +0000 (15:30 -0400)
commit4fe35e2b5c50687a5f68868b533dafadfd15c1b4
treefa2122f3972be65aaed5181c512ac8d3723be3dd
parentfc27a9854b3318b4042d897f5c8771c280e20e91
mm: frontswap: split out __frontswap_curr_pages

Code was duplicated in two functions, clean it up.

Also, assert that the deduplicated code runs under the swap spinlock.

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