nfs: remove ->write_pageio_init from rpc ops
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Apr 2014 13:07:21 +0000 (15:07 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 28 May 2014 21:48:38 +0000 (17:48 -0400)
commita20c93e3160e37ecccc738d8eef085c8507949ed
tree22f179b47930f42ae8e1a8ac12d70f1aeee1b071
parent1b33809ea8c671ccbceeaaa8d842631b441bed54
nfs: remove ->write_pageio_init from rpc ops

The write_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_write 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/write.c
include/linux/nfs_xdr.h