NFSv4.1: Fix layoutcommit error handling
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 27 Mar 2012 22:22:19 +0000 (18:22 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 28 Mar 2012 01:53:14 +0000 (21:53 -0400)
commite59d27e05a6435f8c04d5ad843f37fa795f2eaaa
tree217a19f29b5214d8b0e36dbe190c34140a01000f
parent05e9cfb408b24debb3a85fd98edbfd09dd148881
NFSv4.1: Fix layoutcommit error handling

Firstly, task->tk_status will always return negative error values,
so the current tests for 'NFS4ERR_DELEG_REVOKED' etc. are all being
ignored.
Secondly, clean up the code so that we only need to test
task->tk_status once!

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
fs/nfs/nfs4proc.c