Skip to content
Commit efc91ed0 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent b390c2b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment