]> rtime.felk.cvut.cz Git - linux-imx.git/commit
NFS: Allow nfs_updatepage to extend a write under additional circumstances
authorScott Mayhew <smayhew@redhat.com>
Fri, 5 Jul 2013 21:33:19 +0000 (17:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Jul 2013 23:32:50 +0000 (19:32 -0400)
commitc7559663e42f4294ffe31fe159da6b6a66b35d61
tree0b59b9bdc4a423efa64c79e9e9db1af68c27ff40
parent07b5ce8ef2d87f1914054804720d6facbaa3f4ce
NFS: Allow nfs_updatepage to extend a write under additional circumstances

Currently nfs_updatepage allows a write to be extended to cover a full
page only if we don't have a byte range lock lock on the file... but if
we have a write delegation on the file or if we have the whole file
locked for writing then we should be allowed to extend the write as
well.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
[Trond: fix up call to nfs_have_delegation()]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c