• David Howells's avatar
    iov_iter: Separate type from direction and use accessor functions · aa563d7b
    David Howells authored
    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: default avatarDavid Howells <dhowells@redhat.com>
    aa563d7b
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
ast.c Loading commit data...
ast.h Loading commit data...
config.c Loading commit data...
config.h Loading commit data...
debug_fs.c Loading commit data...
dir.c Loading commit data...
dir.h Loading commit data...
dlm_internal.h Loading commit data...
lock.c Loading commit data...
lock.h Loading commit data...
lockspace.c Loading commit data...
lockspace.h Loading commit data...
lowcomms.c Loading commit data...
lowcomms.h Loading commit data...
lvb_table.h Loading commit data...
main.c Loading commit data...
member.c Loading commit data...
member.h Loading commit data...
memory.c Loading commit data...
memory.h Loading commit data...
midcomms.c Loading commit data...
midcomms.h Loading commit data...
netlink.c Loading commit data...
plock.c Loading commit data...
rcom.c Loading commit data...
rcom.h Loading commit data...
recover.c Loading commit data...
recover.h Loading commit data...
recoverd.c Loading commit data...
recoverd.h Loading commit data...
requestqueue.c Loading commit data...
requestqueue.h Loading commit data...
user.c Loading commit data...
user.h Loading commit data...
util.c Loading commit data...
util.h Loading commit data...