]> git.baikalelectronics.ru Git - kernel.git/commit
staging: zcache: fix cleancache crash
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Tue, 20 Sep 2011 20:09:56 +0000 (13:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Sep 2011 21:17:13 +0000 (14:17 -0700)
commitc6bd72b0607b5a8ae354e764ca4a84b08769ba0e
tree320b676c03663914061a6e399261882c4bccc61e
parent8b81e4edbfe3f8412b6d2e1fb626d2295035b891
staging: zcache: fix cleancache crash

After commit 02ace87e27ab ("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 02ace87e27ab.

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Tested-By: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/staging/zcache/zcache-main.c