• I
    rbd: store and use obj_request->object_no · a90bb0c1
    Ilya Dryomov 提交于
    object_no can be trivially formatted into an object name.  We already
    store object names in OSD requests with special care to avoid dynamic
    allocations for short names.  Storing a name in obj_request, obtained
    as below (!), is a waste and will be removed in the next commit.
    
        name = kmem_cache_alloc(rbd_segment_name_cache, ...);
        snprintf(name, ...);
        obj_request->object_name = kstrdup(name);
        kmem_cache_free(rbd_segment_name_cache, name);
        ...
        ceph_oid_aprintf(..., "%s", obj_request->object_name);
    Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
    Reviewed-by: NJason Dillaman <dillaman@redhat.com>
    a90bb0c1
rbd.c 165.7 KB