lkml.org 
[lkml]   [2023]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 1/2] blk-integrity: add rq_integrity_payload_size helper
    Date

    >> +
    >> +static inline unsigned int rq_integrity_payload_size(struct request
    >> *rq)
    >> +{
    >> +    if (WARN_ON_ONCE(queue_max_integrity_segments(rq->q) > 1))
    >> +        return 0;
    >> +    return rq->bio->bi_integrity->bip_iter.bi_size;
    >> +}
    >>   #else /* CONFIG_BLK_DEV_INTEGRITY */
    >>   static inline int blk_rq_count_integrity_sg(struct request_queue *q,
    >>                           struct bio *b)
    >
    > from the comments that I got in the past, you should only be adding
    > a helper in the patch that is actually using it.
    >
    > -ck
    >
    >

    disregard my comment, I think this is correct looking at the next patch...

    -ck


    \
     
     \ /
      Last update: 2023-04-12 07:43    [W:3.125 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site