]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: clean up NFS client's a_ops->direct_IO method
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:28 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:28 +0000 (13:44 -0500)
commit3ec0c07e20497a17bc7933fcba5a120cee96d784
tree20f0c2610eddb104a8cbf1d7981b34fc962a92ea
parent11e3cdd4ce6658ce827b7e575dc8bd8e30405221
NFS: clean up NFS client's a_ops->direct_IO method

The NFS client's a_ops->direct_IO method, nfs_direct_IO, is required to
be present to allow NFS files to be opened with O_DIRECT, but is never
called because the NFS client shunts reads and writes to files opened
with O_DIRECT directly to its own routines.

Gut the nfs_direct_IO function.  This eliminates the only part of the
NFS client's direct I/O path that requires support for multi-segment
iovs, allowing further simplification in subsequent patches.

Test plan:
Compile the kernel with CONFIG_NFS and CONFIG_NFS_DIRECTIO enabled.  Millions
of fsx-odirect ops.  OraSim.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c