search for: iterate_and_advance

Displaying 1 result from an estimated 1 matches for "iterate_and_advance".

2019 Sep 25
0
[PATCH] vhost: It's better to use size_t for the 3rd parameter of vhost_exceeds_weight()
...iter() -> > iov_iter_advance(iter, ...) // has 3 branches: > pipe_advance() // has checked the size: if (unlikely(i->count < size)) size = i->count; > iov_iter_is_discard() ... // no check. Yes, but I don't think we use ITER_DISCARD. Thanks > iterate_and_advance() //has checked: if (unlikely(i->count < n)) n = i->count; > return iov_iter_count(iter); > > -----Original Message----- > From: Michael S. Tsirkin [mailto:mst at redhat.com] > Sent: Monday, September 23, 2019 4:07 PM > To: wangxu (AE) <wangxu72 at huawei.com>...