nfsd41: refactor nfsd4_deleg_xgrade_none_ext logic out of nfsd4_process_open2
authorBenny Halevy <benny@tonian.com>
Tue, 21 Feb 2012 22:16:54 +0000 (14:16 -0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 6 Mar 2012 23:13:35 +0000 (18:13 -0500)
commite27f49c33b7410f4db065bc4382a8e03769eecc3
tree2b036ce4d8362762b94df6ac0bf4a3bc97e4392e
parent4aa8913cb0cd257543f257ddb4baf0b37eb30b9d
nfsd41: refactor nfsd4_deleg_xgrade_none_ext logic out of nfsd4_process_open2

Handle the case where the nfsv4.1 client asked to uprade or downgrade
its delegations and server returns no delegation.

In this case, op_delegate_type is set to NFS4_OPEN_DELEGATE_NONE_EXT
and op_why_no_deleg is set respectively to WND4_NOT_SUPP_{UP,DOWN}GRADE

Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c