iov_iter: reorder handling of flavours in primitives
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 Jun 2021 21:25:59 +0000 (17:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Jun 2021 15:45:07 +0000 (11:45 -0400)
commit28f38db7edbfa6d7736cd7a3a7aec76660bfef57
tree78fa5e4288314e2fdb7890ede14216d3d5ce51af
parent4b6c132b7da6430cf5dcc96948b04849dea0a32a
iov_iter: reorder handling of flavours in primitives

iovec is the most common one; test it first and test explicitly,
rather than "not anything else".  Replace all flavour checks with
use of iov_iter_is_...() helpers.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c