nfsd4: simplify lock openmode check
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 22 Aug 2011 15:39:07 +0000 (11:39 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 27 Aug 2011 18:21:27 +0000 (14:21 -0400)
commit9afb978400e65ea6a3200b3e163606ce86e13c25
treee0c30b6f859ae37b519c6914d7485ab7969e46a5
parenta9004abc34239705840eaf6fe3d6cc9cb7656cba
nfsd4: simplify lock openmode check

Note that the special handling for the lock stateid case is already done
by nfs4_check_openmode() (as of 02921914170e3b7fea1cd82dac9713685d2de5e2
"nfsd4: fix openmode checking on IO using lock stateid") so we no longer
need these two cases in the caller.

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