]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 7 Apr 2015 01:12:58 +0000 (21:12 -0400)
commitad85584a98c1693eecd1fc7ca6367129f9cf4a09
treed55026212068aea27ea51829054ee2f0ac8303b8
parentf6f11bf64118e1ba84ed513ac1dedaf22cbb634b
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