[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110920200956.GB8147@kroah.com>
Date: Tue, 20 Sep 2011 13:09:56 -0700
From: Greg KH <gregkh@...e.de>
To: torvalds@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
Seth Jennings <sjenning@...ux.vnet.ibm.com>,
dan.magenheimer@...cle.com, francis.moro@...il.com,
ngupta@...are.org
Subject: [patch 1/1] staging: zcache: fix cleancache crash
From: Seth Jennings <sjenning@...ux.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@...ux.vnet.ibm.com>
Tested-By: Valdis Kletnieks <valdis.kletnieks@...edu>
Acked-by: Dan Magenheimer <dan.magenheimer@...cle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists