Re: [PATCH 4/7] virtiofsd: get rid of in_sg_left variable

2021-05-18 Thread Dr. David Alan Gilbert
* Vivek Goyal (vgo...@redhat.com) wrote: > in_sg_left seems to be being used primarly for debugging purpose. It is > keeping track of how many bytes are left in the scatter list we are > reading into. > > We already have another variable "len" which keeps track how many bytes > are left to be

[PATCH 4/7] virtiofsd: get rid of in_sg_left variable

2021-05-11 Thread Vivek Goyal
in_sg_left seems to be being used primarly for debugging purpose. It is keeping track of how many bytes are left in the scatter list we are reading into. We already have another variable "len" which keeps track how many bytes are left to be read. And in_sg_left is greater than or equal to len. We