commit | a00bb1e9fc0925c0061e9d844523a3a47a7e2f7f | [log] [tgz] |
---|---|---|
author | Zhenzhong Duan <zhenzhong.duan@oracle.com> | Fri Sep 21 16:40:30 2012 +0800 |
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | Fri Sep 21 10:37:45 2012 -0400 |
tree | e4a276b1d44e5b34765377698260f9f857bff85a | |
parent | 15773b68fc5854e8890a8e251c568d583a540e4c [diff] |
mm: frontswap: fix a wrong if condition in frontswap_shrink pages_to_unuse is set to 0 to unuse all frontswap pages But that doesn't happen since a wrong condition in frontswap_shrink cancel it. -v2: Add comment to explain return value of __frontswap_shrink, as suggested by Dan Carpenter, thanks Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>