]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd575332a45ea58cc0da7dc18ee5a9c27b38342f6
treee0c30b6f859ae37b519c6914d7485ab7969e46a5
parent26f105085ebed019c5d0e146325f0f7c31d67d75
nfsd4: simplify lock openmode check

Note that the special handling for the lock stateid case is already done
by nfs4_check_openmode() (as of ee7f7970f982f1930a8aa8bbe1cd8e309968be43
"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