[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230412085558epcms2p46c6ebb9ad18e90d6f21f5598d55c6785@epcms2p4>
Date: Wed, 12 Apr 2023 17:55:58 +0900
From: Jinyoung CHOI <j-young.choi@...sung.com>
To: Chaitanya Kulkarni <chaitanyak@...dia.com>,
"kbusch@...nel.org" <kbusch@...nel.org>,
"axboe@...com" <axboe@...com>, "hch@....de" <hch@....de>,
"sagi@...mberg.me" <sagi@...mberg.me>,
"linux-nvme@...ts.infradead.org" <linux-nvme@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE:(2) [PATCH 1/2] blk-integrity: add rq_integrity_payload_size
helper
>>> +
>>> +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
OK Thanks for your review :)
I sent it to the wrong email address. (result from get_maintainer.pl)
I will update your email address for cc.
Kind Regards,
Jinyoung.
Powered by blists - more mailing lists