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-12 09:18:29 +02:00
2018-09-21 09:41:05 +02:00
2018-10-18 15:39:10 -07:00
2018-08-18 11:04:51 -07:00
2018-10-07 08:15:57 +02:00
2018-07-18 09:34:19 +02:00
2018-10-24 00:41:07 +01:00
2018-10-12 21:38:46 -07:00
2018-08-28 09:58:03 -07:00
2018-08-29 08:09:20 -06:00
2018-09-12 19:33:56 -10:00
2018-10-17 13:40:10 +02:00
2018-09-27 12:01:45 +02:00
2018-07-08 11:00:50 +09:00
2018-09-29 15:01:10 +02:00
2018-08-25 13:16:08 +02:00
2018-10-18 16:26:36 -07:00
2018-09-22 09:07:33 -07:00
2018-08-18 11:04:51 -07:00
2018-08-27 11:16:04 +05:30
2018-07-16 20:20:37 +05:30
2018-08-17 15:13:34 +02:00
2018-07-21 08:13:02 +02:00
2018-08-17 16:20:27 -07:00
2018-09-12 16:41:41 +02:00
2018-09-30 08:49:55 -07:00
2018-10-24 00:41:07 +01:00
2018-07-16 12:48:07 +02:00
2018-10-10 14:03:27 +02:00
2018-10-24 00:36:12 +01:00
2018-09-24 11:46:15 +02:00
2018-07-07 17:52:26 +02:00
2018-09-30 08:49:55 -07:00
2018-10-11 19:10:30 +02:00
2018-07-30 20:54:51 -07:00
2018-09-18 16:08:38 +02:00
2018-10-11 22:59:57 +02:00
2018-08-22 07:40:33 -07:00
2018-09-09 09:33:29 +02:00
2018-10-19 11:03:06 -07:00
2018-10-12 12:35:02 +02:00
2018-10-05 10:20:24 +02:00
2018-07-07 17:19:27 +02:00
2018-09-06 20:31:59 +02:00
2018-10-24 00:41:07 +01:00
2018-08-06 23:03:12 +02:00
2018-07-18 08:44:20 -06:00
2018-08-24 14:42:42 +02:00
2018-08-15 09:53:07 +05:30
2018-10-11 19:10:30 +02:00
2018-10-03 06:32:51 -04:00
2018-09-06 10:04:07 -07:00
2018-07-30 23:17:53 -04:00
2018-09-11 16:47:33 +01:00
2018-10-24 00:41:07 +01:00
2018-10-09 09:23:00 +02:00
2018-09-18 10:17:48 +02:00
2018-10-12 17:36:39 +02:00
2018-10-19 11:03:06 -07:00
2018-07-02 08:28:32 +02:00
2018-06-29 20:16:44 -05:00
2018-07-23 15:07:12 +02:00
2018-08-25 18:43:59 -07:00
2018-10-24 00:41:07 +01:00
2018-07-16 09:04:54 +02:00
2018-10-10 22:09:02 +02:00
2018-08-18 11:04:51 -07:00
2018-10-11 19:10:30 +02:00
2018-08-18 12:30:42 -07:00
2018-10-12 15:25:17 +01:00
2018-10-10 22:54:26 -07:00
2018-10-10 14:36:35 +02:00
2018-10-09 20:57:30 -07:00
2018-08-23 18:48:43 -07:00
2018-07-02 13:00:24 +02:00
2018-10-17 22:00:22 -07:00
2018-08-20 11:36:07 +02:00
2018-08-22 10:52:51 -07:00
2018-09-20 09:04:51 -07:00
2018-08-16 17:39:55 -07:00
2018-08-25 14:12:36 -07:00
2018-07-30 23:40:23 -07:00
2018-08-20 16:30:27 -07:00
2018-10-12 21:38:46 -07:00
2018-10-07 22:42:00 -07:00
2018-10-12 21:38:46 -07:00
2018-08-02 13:54:06 +02:00
2018-07-07 17:52:26 +02:00
2018-07-08 15:19:04 +02:00
2018-10-01 17:47:43 -05:00
2018-08-27 09:49:48 +05:30
2018-09-28 18:04:06 -07:00
2018-10-05 11:37:20 +03:00
2018-10-08 10:23:22 -07:00
2018-10-24 00:41:07 +01:00
2018-08-23 13:52:46 -07:00
2018-08-28 16:11:34 -07:00
2018-10-02 10:51:16 -07:00
2018-10-11 19:10:30 +02:00
2018-08-19 09:30:44 -07:00
2018-10-24 00:41:07 +01: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-10-07 22:41:05 -07:00
2018-08-24 08:45:19 -07:00
2018-07-16 12:03:53 +02:00
2018-08-21 18:06:27 -07:00
2018-08-22 17:31:34 -07:00
2018-10-24 00:41:07 +01:00
2018-06-28 20:29:47 +09:00
2018-08-18 11:04:51 -07:00