Re: [PATCH] Fix thinko in iov_iter_single_seg_count

2014-11-13 Thread Al Viro
On Thu, Nov 13, 2014 at 08:15:23PM +1100, Paul Mackerras wrote: > The branches of the if (i->type & ITER_BVEC) statement in > iov_iter_single_seg_count() are the wrong way around; if ITER_BVEC is > clear then we use i->bvec, when we should be using i->iov. This fixes > it. > > In my case, the sym

[PATCH] Fix thinko in iov_iter_single_seg_count

2014-11-13 Thread Paul Mackerras
The branches of the if (i->type & ITER_BVEC) statement in iov_iter_single_seg_count() are the wrong way around; if ITER_BVEC is clear then we use i->bvec, when we should be using i->iov. This fixes it. In my case, the symptom that this caused was that a KVM guest doing filesystem operations on a