• Alex Elder's avatar
    rbd: pass length, not op for osd completions · c47f9371
    Alex Elder authored
    The only thing type-specific osd completion functions do with their
    osd op parameter is (in some cases) extract the number of bytes
    transferred from it.  In the other cases, the xferred bytes field
    is not used, and total message data transfer byte count (which may
    well be zero) is used.
    
    Just set the object request transfer count in the main osd request
    callback function and provide that to the other routines.  There is
    then no longer any need to pass the op pointer to the type-specific
    completion routines, so drop those parameters.
    
    Stop doing anything with the total message data length.
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarSage Weil <sage@inktank.com>
    c47f9371
rbd.c 106 KB