NFS: use generic_write_checks() to sanity check direct writes
authorChuck Lever <cel@netapp.com>
Wed, 30 Nov 2005 23:08:17 +0000 (18:08 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Jan 2006 19:58:47 +0000 (14:58 -0500)
commitce1a8e6796150233f5098100f70217521dc7c08f
tree439d2abd246e051c43d1cdb7ee3b77b8864fd2b3
parent286d7d6a0cb38d3d4316a1dfea9b0c0fc5a6455b
NFS: use generic_write_checks() to sanity check direct writes

 Replace ad hoc write parameter sanity checking in nfs_file_direct_write()
 with a call to generic_write_checks().  This should make the proper checks
 modulo the O_LARGEFILE flag, and should catch NFSv2-specific limitations by
 virtue of i_sb->s_maxbytes.

 Test plan:
 Posix compliance testing with both NFSv2 and NFSv3.

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