orangefs: use a single enum for read vs writes

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: opencode do_aio_read_write for writes

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: opencode do_aio_read_write for reads

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: remove pvfs2_aio_retry

This is never called by the VFS.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: remove dead read/write code

Remove various unused functions from file.c

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: remove support for reading/writing to pages

This was never called.  Might be worth to bring back for pvfs2_inode_read
eventually, but we can grab it from git history then.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: remove copy_to_user argument to pvfs2_inode_read

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: split pvfs2_inode_read from the user read/write path

Reading into kernel buffers with just an inode instead of an file
is different enough to not bother sharing code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: kill struct rw_options

And just pass arguments directly as needed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: fix O_APPEND handling

The file postition for O_APPEND writes needs to be updated at every write,
not just at open time.  Fortunately generic_write_checks handles this,
so we only need to ensure the file attributes are uptodate.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Orangefs: update EXTRAVERSION to reflect iopath updates

Signed-off-by: Mike Marshall <hubcap@omnibond.com>