Commit ff2972aa authored by Johannes Weiner's avatar Johannes Weiner Committed by Andrew Morton
parent dab7711f
...@@ -1315,7 +1315,7 @@ static int zswap_enabled_param_set(const char *val, ...@@ -1315,7 +1315,7 @@ static int zswap_enabled_param_set(const char *val,
return ret; return ret;
} }
static void __zswap_load(struct zswap_entry *entry, struct page *page) static void zswap_decompress(struct zswap_entry *entry, struct page *page)
{ {
struct zpool *zpool = zswap_find_zpool(entry); struct zpool *zpool = zswap_find_zpool(entry);
struct scatterlist input, output; struct scatterlist input, output;
...@@ -1410,7 +1410,7 @@ static int zswap_writeback_entry(struct zswap_entry *entry, ...@@ -1410,7 +1410,7 @@ static int zswap_writeback_entry(struct zswap_entry *entry,
zswap_entry_get(entry); zswap_entry_get(entry);
spin_unlock(&tree->lock); spin_unlock(&tree->lock);
__zswap_load(entry, &folio->page); zswap_decompress(entry, &folio->page);
count_vm_event(ZSWPWB); count_vm_event(ZSWPWB);
if (entry->objcg) if (entry->objcg)
...@@ -1702,7 +1702,7 @@ bool zswap_load(struct folio *folio) ...@@ -1702,7 +1702,7 @@ bool zswap_load(struct folio *folio)
spin_unlock(&tree->lock); spin_unlock(&tree->lock);
if (entry->length) if (entry->length)
__zswap_load(entry, page); zswap_decompress(entry, page);
else { else {
dst = kmap_local_page(page); dst = kmap_local_page(page);
zswap_fill_page(dst, entry->value); zswap_fill_page(dst, entry->value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment