]> git.baikalelectronics.ru Git - kernel.git/commit
direct_IO: use iov_iter_rw() instead of rw everywhere
authorOmar Sandoval <osandov@osandov.com>
Mon, 16 Mar 2015 11:33:52 +0000 (04:33 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Apr 2015 02:29:45 +0000 (22:29 -0400)
commit6f67376318abea58589ebe6d69dffeabb6f6c26a
tree1d3e6b00735aed811dcaeee2ccf7fa65eebc406d
parenta95cd6311512bd954e88684eb39373f7f4b0a984
direct_IO: use iov_iter_rw() instead of rw everywhere

The rw parameter to direct_IO is redundant with iov_iter->type, and
treated slightly differently just about everywhere it's used: some users
do rw & WRITE, and others do rw == WRITE where they should be doing a
bitwise check. Simplify this with the new iov_iter_rw() helper, which
always returns either READ or WRITE.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
22 files changed:
drivers/staging/lustre/lustre/llite/rw26.c
fs/9p/vfs_addr.c
fs/affs/file.c
fs/btrfs/inode.c
fs/ext2/inode.c
fs/ext3/inode.c
fs/ext4/ext4.h
fs/ext4/indirect.c
fs/ext4/inode.c
fs/f2fs/data.c
fs/fat/inode.c
fs/fuse/file.c
fs/gfs2/aops.c
fs/hfs/inode.c
fs/hfsplus/inode.c
fs/jfs/inode.c
fs/nfs/direct.c
fs/nilfs2/inode.c
fs/ocfs2/aops.c
fs/reiserfs/inode.c
fs/udf/inode.c
fs/xfs/xfs_aops.c