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)
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>

No differences found