nfsd4: clean up nfs4_open_delegation
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 21 May 2013 20:21:25 +0000 (16:21 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 1 Jul 2013 21:23:07 +0000 (17:23 -0400)
commit99c415156c49571d0f045a8cb56e0bc24225b9d9
tree05f94ea6fe578931f9a7de3e2e76e0bb8cd93618
parent9a0590aec3ca5e86a64b87e004244abc4dd1faf9
nfsd4: clean up nfs4_open_delegation

The nfs4_open_delegation logic is unecessarily baroque.

Also stop pretending we support write delegations in several places.

Some day we will support write delegations, but when that happens adding
back in these flag parameters will be the easy part.  For now they're
just confusing.

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