Skip to content
  • Ilya Dryomov's avatar
    rbd: store and use obj_request->object_no · a90bb0c1
    Ilya Dryomov authored
    
    
    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: default avatarIlya Dryomov <idryomov@gmail.com>
    Reviewed-by: default avatarJason Dillaman <dillaman@redhat.com>
    a90bb0c1