On Mon, Mar 25, 2019 at 05:07:44AM +0000, Chaitanya Kulkarni wrote: > > +static inline struct bio_vec req_bvec(struct request *rq) > > +{ > > + if (rq->rq_flags & RQF_SPECIAL_PAYLOAD) > > + return rq->special_vec; > Quick question here mostly for my understanding, do we also have to > check here for nr_phys_segments for the operations such as write-zeroes ? OR > > this may never get called in write-zeroes context ? OR > not applicable ? We assume the caller checks that we have nr_phys_segments. I'll add a commen to document that.