diff options
author | nadlabak <pavel@doshaska.net> | 2015-04-08 23:17:43 +0200 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-12 21:20:15 +1000 |
commit | cf8ced61d7f4bac6f8a6cfc8697e74f3fca8b013 (patch) | |
tree | 8883ec45847fdf82f0ad0d157cfdb0ebfc9dd915 | |
parent | 032a8919a9dfc0043218efa04efccf58509e239f (diff) | |
download | kernel_samsung_smdk4412-cf8ced61d7f4bac6f8a6cfc8697e74f3fca8b013.zip kernel_samsung_smdk4412-cf8ced61d7f4bac6f8a6cfc8697e74f3fca8b013.tar.gz kernel_samsung_smdk4412-cf8ced61d7f4bac6f8a6cfc8697e74f3fca8b013.tar.bz2 |
zcache: Use zs_get_total_size_pages
Change-Id: I800331317eda3ffa33b12314fc1641f3d2ca4db2
-rw-r--r-- | drivers/staging/zcache/zcache-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c index 752390d..d781bd0 100644 --- a/drivers/staging/zcache/zcache-main.c +++ b/drivers/staging/zcache/zcache-main.c @@ -1216,7 +1216,7 @@ static void *zcache_pampd_create(char *data, size_t size, bool raw, int eph, } /* reject if mean compression is too poor */ if ((clen > zv_max_mean_zsize) && (curr_pers_pampd_count > 0)) { - total_zsize = zs_get_total_size_bytes(cli->zspool); + total_zsize = zs_get_total_pages(cli->zspool) << PAGE_SHIFT; zv_mean_zsize = div_u64(total_zsize, curr_pers_pampd_count); if (zv_mean_zsize > zv_max_mean_zsize) { |