]> Pileus Git - ~andy/linux/commit
rbd: allocate image object names with a slab allocator
authorAlex Elder <elder@inktank.com>
Wed, 1 May 2013 17:43:04 +0000 (12:43 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 2 May 2013 16:58:30 +0000 (11:58 -0500)
commit78c2a44aae2950ecf0279590572b861288714946
tree0b08672df26d2ecc61726d4577657633871a2269
parent868311b1ebc9b203bae0d6d1f012ea5cbdadca03
rbd: allocate image object names with a slab allocator

The names of objects used for image object requests are always fixed
size.  So create a slab cache to manage them.  Define a new function
rbd_segment_name_free() to match rbd_segment_name() (which is what
supplies the dynamically-allocated name buffer).

This is part of:
    http://tracker.ceph.com/issues/3926

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c