]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nfs: remove ->read_pageio_init from rpc ops
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Apr 2014 13:07:22 +0000 (15:07 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 28 May 2014 21:50:08 +0000 (17:50 -0400)
commitfab5fc25d230edcc8ee72367e505955a2fae0cac
treeea5d0df777acfeef50068c4b031bb9417be9743f
parenta20c93e3160e37ecccc738d8eef085c8507949ed
nfs: remove ->read_pageio_init from rpc ops

The read_pageio_init method is just a very convoluted way to grab the
right nfs_pageio_ops vector.  The vector to chose is not a choice of
protocol version, but just a pNFS vs MDS I/O choice that can simply be
done inside nfs_pageio_init_read based on the presence of a layout
driver, and a new force_mds flag to the special case of falling back
to MDS I/O on a pNFS-capable volume.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/direct.c
fs/nfs/internal.h
fs/nfs/nfs3proc.c
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h
fs/nfs/proc.c
fs/nfs/read.c
include/linux/nfs_xdr.h