Skip to content
Commit 8cd54c1c authored by Al Viro's avatar Al Viro
Browse files

iov_iter: separate direction from flavour



Instead of having them mixed in iter->type, use separate ->iter_type
and ->data_source (u8 and bool resp.)  And don't bother with (pseudo-)
bitmap for the former - microoptimizations from being able to check
if the flavour is one of two values are not worth the confusion for
optimizer.  It can't prove that we never get e.g. ITER_IOVEC | ITER_PIPE,
so we end up with extra headache.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 556351c1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment