From: Chuck Lever Date: Wed, 30 Nov 2005 23:08:17 +0000 (-0500) Subject: NFS: use generic_write_checks() to sanity check direct writes X-Git-Tag: v2.6.16-rc1~935^2~4^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce1a8e6796150233f5098100f70217521dc7c08f;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed