From: NeilBrown Date: Thu, 10 Jun 2010 05:39:38 +0000 (+1000) Subject: correct arg to kfree in refile X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=49164b44d42baba041450adf691ec948dc38ca9c;p=LaFS.git correct arg to kfree in refile 'b' is a struct-block, technically a virtual type. Need to get container_of - dblk in this case - before calling kfree. Signed-off-by: NeilBrown --- diff --git a/index.c b/index.c index 93e4e61..d866af5 100644 --- a/index.c +++ b/index.c @@ -976,7 +976,7 @@ void lafs_refile(struct block *b, int dec) lafs_inode_checkpin(checkpin); if (free_me) - kfree(b); + kfree(dblk(b)); b = NULL; if (next) { b = next;