vfs: pass a flags argument to vfs_readv/vfs_writev
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Mar 2016 15:03:58 +0000 (16:03 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 4 Mar 2016 17:20:10 +0000 (12:20 -0500)
commit793b80ef14af56d20c998265287648ad34239b6f
tree930a6879d16b435829f10b36566bf80df64850cc
parent92e963f50fc74041b5e9e744c330dca48e04f08d
vfs: pass a flags argument to vfs_readv/vfs_writev

This way we can set kiocb flags also from the sync read/write path for
the read_iter/write_iter operations.  For now there is no way to pass
flags to plain read/write operations as there is no real need for that,
and all flags passed are explicitly rejected for these files.

Signed-off-by: Milosz Tanski <milosz@adfin.com>
[hch: rebased on top of my kiocb changes]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stephen Bates <stephen.bates@pmcs.com>
Tested-by: Stephen Bates <stephen.bates@pmcs.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfsd/vfs.c
fs/read_write.c
fs/splice.c
include/linux/fs.h