diff options
Diffstat (limited to 'fs/gfs2/trans.c')
-rw-r--r-- | fs/gfs2/trans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index eadf96e00510..01cc27fefd84 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c | |||
@@ -144,7 +144,7 @@ void gfs2_trans_add_bh(struct gfs2_glock *gl, struct buffer_head *bh, int meta) | |||
144 | 144 | ||
145 | void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, u64 blkno) | 145 | void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, u64 blkno) |
146 | { | 146 | { |
147 | struct gfs2_bufdata *bd = kmalloc(sizeof(struct gfs2_bufdata), | 147 | struct gfs2_bufdata *bd = kmem_cache_alloc(gfs2_bufdata_cachep, |
148 | GFP_NOFS | __GFP_NOFAIL); | 148 | GFP_NOFS | __GFP_NOFAIL); |
149 | lops_init_le(&bd->bd_le, &gfs2_revoke_lops); | 149 | lops_init_le(&bd->bd_le, &gfs2_revoke_lops); |
150 | bd->bd_blkno = blkno; | 150 | bd->bd_blkno = blkno; |
@@ -172,7 +172,7 @@ void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno) | |||
172 | 172 | ||
173 | if (found) { | 173 | if (found) { |
174 | struct gfs2_trans *tr = current->journal_info; | 174 | struct gfs2_trans *tr = current->journal_info; |
175 | kfree(bd); | 175 | kmem_cache_free(gfs2_bufdata_cachep, bd); |
176 | tr->tr_num_revoke_rm++; | 176 | tr->tr_num_revoke_rm++; |
177 | } | 177 | } |
178 | } | 178 | } |