Skip to content
Commit 80976804 authored by Seth Jennings's avatar Seth Jennings Committed by Linus Torvalds
Browse files

staging: zcache: fix cleancache crash



After commit c5f5c4db ("staging: zcache: fix crash on high memory
swap") cleancache crashes on the first successful get.  This was caused
by a remaining virt_to_page() call in zcache_pampd_get_data_and_free()
that only gets run in the cleancache path.

The patch converts the virt_to_page() to struct page casting like was
done for other instances in c5f5c4db.

Signed-off-by: default avatarSeth Jennings <sjenning@linux.vnet.ibm.com>
Tested-By: default avatarValdis Kletnieks <valdis.kletnieks@vt.edu>
Acked-by: default avatarDan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2838888f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment