* [patch 0/1] One more staging fix for 3.1
@ 2011-09-20 20:09 Greg KH
2011-09-20 20:09 ` [patch 1/1] staging: zcache: fix cleancache crash Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Greg KH @ 2011-09-20 20:09 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Here's one more staging bugfix that has been reported a lot that I
missed sending you in my last short series of patches.
After this, my patch queue is empty for 3.1, all looks good from my end.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
* [patch 1/1] staging: zcache: fix cleancache crash
2011-09-20 20:09 [patch 0/1] One more staging fix for 3.1 Greg KH
@ 2011-09-20 20:09 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2011-09-20 20:09 UTC (permalink / raw)
To: torvalds
Cc: linux-kernel, devel, Seth Jennings, dan.magenheimer, francis.moro,
ngupta
From: Seth Jennings <sjenning@linux.vnet.ibm.com>
After commit, c5f5c4db, 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: 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>
---
drivers/staging/zcache/zcache-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/staging/zcache/zcache-main.c
+++ b/drivers/staging/zcache/zcache-main.c
@@ -1242,7 +1242,7 @@ static int zcache_pampd_get_data_and_fre
int ret = 0;
BUG_ON(!is_ephemeral(pool));
- zbud_decompress(virt_to_page(data), pampd);
+ zbud_decompress((struct page *)(data), pampd);
zbud_free_and_delist((struct zbud_hdr *)pampd);
atomic_dec(&zcache_curr_eph_pampd_count);
return ret;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-20 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-20 20:09 [patch 0/1] One more staging fix for 3.1 Greg KH
2011-09-20 20:09 ` [patch 1/1] staging: zcache: fix cleancache crash Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.