]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit625f88b02a1f88f2c05de9f996c706ef793f4006
treedd650add42ee89972be1e8c33ba41470d218373d
parentb4f255fcfe4b5b137c2c84a672963c81b6c516c9
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