NFS: Ensure we return zero if applications attempt to write zero bytes
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Nov 2007 17:16:58 +0000 (12:16 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 26 Nov 2007 21:32:38 +0000 (16:32 -0500)
commitb9148c6b80d802dbc2a7530b29915a80432e50c7
tree0388ff65beef42a21d1bd30a4868259f9a3573d2
parentc216fd708e1a97431925ecffd6d1896cff61df0a
NFS: Ensure we return zero if applications attempt to write zero bytes

A zero byte count direct write request should be a successful no-op, not an
error.

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