diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2007-09-02 16:47:38 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2007-10-10 08:56:10 +0100 |
commit | 0820ab517e1b100ee3f9584ec27f93309689ebe7 (patch) | |
tree | db2baf9e6d2ac545c344a412fe31371a09bf9b68 /fs/gfs2/lops.c | |
parent | 82e86087bb774cd54d47db4a7c771b5b29bea9ed (diff) | |
download | linux-0820ab517e1b100ee3f9584ec27f93309689ebe7.tar.bz2 |
[GFS2] Use slab operations for all gfs2_bufdata allocations
The old revoke structure was allocated using kalloc/kfree but
there is a slab cache for gfs2_bufdata, so we should use that
now that the structures have been converted.
This is part two of the patch series to merge the revoke
and gfs2_bufdata structures.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/lops.c')
-rw-r--r-- | fs/gfs2/lops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index cf6fe3631554..4cbef4c23a6b 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c @@ -393,7 +393,7 @@ static void revoke_lo_before_commit(struct gfs2_sbd *sdp) } *(__be64 *)(bh->b_data + offset) = cpu_to_be64(bd->bd_blkno); - kfree(bd); + kmem_cache_free(gfs2_bufdata_cachep, bd); offset += sizeof(u64); } |