NFS: add support for splice writes
commitbf40d3435caf49369058b1ed6bbc92f8e2bd92f1
authorSuresh Jayaraman <sjayaraman@suse.de>
Thu, 18 Jun 2009 01:02:09 +0000 (17 18:02 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 18 Jun 2009 01:02:09 +0000 (17 18:02 -0700)
tree386cfc460a65febcbfbf46aeab3f1a817a9bd3ba
parent5cd973c44a92f4abf8f7084c804089b3eaa7b4bf
NFS: add support for splice writes

Adds support for splice writes. It effectively calls
generic_file_splice_write() to do the writes.

We need not worry about O_APPEND case as the combination of splice()
writes and O_APPEND is disallowed. This patch propagates NFS write
errors back to the caller. The number of bytes written via splice are
being added to NFSIO_NORMALWRITTENBYTES as these are effectively
cached writes.

Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/file.c