]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
NFS: Optimise append writes with holes
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 10 Jun 2008 22:31:00 +0000 (18:31 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 Jul 2008 16:08:45 +0000 (12:08 -0400)
commitefc91ed0191e3fc62bb1c556ac93fc4e661214d2
tree291dba382da5d609c5bd35b5e369324ecbb95c00
parentb390c2b55c830eb3b64633fa8d8b8837e073e458
NFS: Optimise append writes with holes

If a file is being extended, and we're creating a hole, we might as well
declare the entire page to be up to date.

This patch significantly improves the write performance for sparse files
in the case where lseek(SEEK_END) is used to append several non-contiguous
writes at intervals of < PAGE_SIZE.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/file.c
fs/nfs/write.c