]> git.neil.brown.name Git - history.git/commit
[PATCH] A basic NFSv4 client for 2.5.x
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Thu, 10 Oct 2002 05:49:40 +0000 (22:49 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 10 Oct 2002 05:49:40 +0000 (22:49 -0700)
commit63a5ba4276af966c01116ac1e14e82be66f1f133
tree6c668c652e33467da18e238082260c346209d39b
parentaa1e1176cc0f01e360a60ab1a8bf6823860c4173
[PATCH] A basic NFSv4 client for 2.5.x

This is a nontrivial change to the NFS client.

In this patch, we finish modifying the async READ path so that it is
version-agnostic.  We define a new nfs_rpc_op ->setup_read(), and move
the v2- and v3-specific code in nfs_read_rpcsetup() there.  We also
have to change nfs_readpage() result so that the 'count' of bytes
read is a parameter.  The extra parameter means that it can no longer
be ->tk_exit().  Instead, it is called from a version-specific ->tk_exit()
routine which is set in ->read_setup().

The upshot of all this is that the version-specific part of the
async READ path has been encapsulated in a new nfs_rpc_op
->read_setup(), and NFSv4 can share the logic for asynchronous
READ's with NFSv2 and v3.
fs/nfs/nfs3proc.c
fs/nfs/proc.c
fs/nfs/read.c
include/linux/nfs_fs.h
include/linux/nfs_xdr.h