NFSv4: Fail the truncate() if the lock/open stateid is invalid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 4 Mar 2014 18:48:16 +0000 (13:48 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 5 Mar 2014 16:55:25 +0000 (11:55 -0500)
If the open stateid could not be recovered, or the file locks were lost,
then we should fail the truncate() operation altogether.

Reported-by: Andy Adamson <andros@netapp.com>
Link: http://lkml.kernel.org/r/1393954269-3974-1-git-send-email-andros@netapp.com
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c

Simple merge