mm: zcache: fix merge issues

Fix 4.4 merge issues in zero page support, and add the
missing label.

Change-Id: I4bed7add011e0c9b0e148d1b44132ba1873cf607
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:
Vinayak Menon 2016-05-09 22:00:44 +05:30 committed by Kyle Yan
parent b523018fb0
commit 6cc2fdb17c

View file

@ -660,6 +660,10 @@ static void zcache_store_page(int pool_id, struct cleancache_filekey key,
return;
}
zero = zero_page(page);
if (zero)
goto zero;
if (zcache_is_full()) {
zcache_pool_limit_hit++;
if (zbud_reclaim_page(zpool->pool, 8)) {
@ -774,6 +778,7 @@ map:
/* update stats */
atomic_dec(&zcache_stored_pages);
zpool->size = zbud_get_pool_size(zpool->pool);
out:
SetPageWasActive(page);
return ret;
}