]> git.ipfire.org Git - people/ms/linux.git/commit - fs/nfs/write.c
NFS: Optimise sparse writes past the end of file
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 8 Feb 2021 13:55:46 +0000 (08:55 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Feb 2021 16:26:14 +0000 (11:26 -0500)
commitfc9dc401899ab280fe1849a0ca5800384726a793
treedd650add42ee89972be1e8c33ba41470d218373d
parent37eaeed1a57e92d9db200ba7b4851a09c55eef5a
NFS: Optimise sparse writes past the end of file

If we're doing a write, and the entire page lies beyond the end-of-file,
then we can assume the write can be extended to cover the beginning of
the page, since we know the data in that region will be all zeros.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/file.c
fs/nfs/write.c