From: Omar Sandoval Date: Mon, 16 Mar 2015 11:33:52 +0000 (-0700) Subject: direct_IO: use iov_iter_rw() instead of rw everywhere X-Git-Tag: omap-for-v4.1/fixes-rc1~116^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f67376318abea58589ebe6d69dffeabb6f6c26a;p=pandora-kernel.git 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 Signed-off-by: Al Viro --- Reading git-diff-tree failed