From: Julia Lawall <julia@diku.dk>
To: Christoph Hellwig <hch@infradead.org>
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] fs/freevxfs/vxfs_fshead.c: Convert kfree to kmem_cache_free
Date: Fri, 13 May 2011 23:23:02 +0200 [thread overview]
Message-ID: <1305321782-30566-1-git-send-email-julia@diku.dk> (raw)
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;
}
reply other threads:[~2011-05-13 21:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1305321782-30566-1-git-send-email-julia@diku.dk \
--to=julia@diku.dk \
--cc=hch@infradead.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®