David Howells aa563d7bca iov_iter: Separate type from direction and use accessor functions
In the iov_iter struct, separate the iterator type from the iterator
direction and use accessor functions to access them in most places.

Convert a bunch of places to use switch-statements to access them rather
then chains of bitwise-AND statements.  This makes it easier to add further
iterator types.  Also, this can be more efficient as to implement a switch
of small contiguous integers, the compiler can use ~50% fewer compare
instructions than it has to use bitwise-and instructions.

Further, cease passing the iterator type into the iterator setup function.
The iterator function can set that itself.  Only the direction is required.

Signed-off-by: David Howells <dhowells@redhat.com>
2018-10-24 00:41:07 +01:00
..
2018-09-07 10:05:20 +02:00
2018-09-21 09:41:05 +02:00
2018-10-07 08:15:57 +02:00
2018-07-21 08:13:02 +02:00
2018-07-02 08:28:32 +02:00
2018-07-16 09:04:54 +02:00
2018-10-10 22:09:02 +02:00
2018-10-17 22:00:22 -07:00
2018-08-20 11:36:07 +02:00
2018-08-25 14:12:36 -07:00
2018-08-20 16:30:27 -07:00
2018-09-28 18:04:06 -07:00
2018-08-23 13:52:46 -07:00
2018-08-19 09:30:44 -07:00
2018-07-06 16:36:19 +02:00
2018-08-17 11:32:50 -07:00
2018-10-07 21:31:32 -07:00
2018-08-24 08:45:19 -07:00
2018-06-28 20:29:47 +09:00
2018-08-18 11:04:51 -07:00