• A
    libceph: make ceph_msg->bio_seg be unsigned · 07c09b72
    Alex Elder 提交于
    The bio_seg field is used by the ceph messenger in iterating through
    a bio.  It should never have a negative value, so make it an
    unsigned.  (I contemplated making it unsigned short to match the
    struct bio definition, but it offered no benefit.)
    
    Change variables used to hold bio_seg values to all be unsigned as
    well.  Change two variable names in init_bio_iter() to match the
    convention used everywhere else.
    Signed-off-by: NAlex Elder <elder@inktank.com>
    Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
    07c09b72
messenger.c 72.0 KB