* [PATCH] fs/freevxfs/vxfs_fshead.c: Convert kfree to kmem_cache_free
@ 2011-05-13 21:23 Julia Lawall
0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2011-05-13 21:23 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: kernel-janitors, linux-kernel
From: Julia Lawall <julia@diku.dk>
vxfs_blkiget allocates its return value using kmem_cache_alloc, so that
value should be freed using kmem_cache_free. The cache is already made
available via vxfs_extern.h.
Signed-off-by: Julia Lawall <julia@diku.dk>
---
fs/freevxfs/vxfs_fshead.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/freevxfs/vxfs_fshead.c b/fs/freevxfs/vxfs_fshead.c
index c9a6a94..86b59e7 100644
--- a/fs/freevxfs/vxfs_fshead.c
+++ b/fs/freevxfs/vxfs_fshead.c
@@ -198,6 +198,6 @@ vxfs_read_fshead(struct super_block *sbp)
iput(infp->vsi_fship);
return -EINVAL;
out_free_fship:
- kfree(vip);
+ kmem_cache_free(vxfs_inode_cachep, vip);
return -EINVAL;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-13 21:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-13 21:23 [PATCH] fs/freevxfs/vxfs_fshead.c: Convert kfree to kmem_cache_free Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®