nfsd4: fix minorversion support interface
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 8 Jul 2013 23:51:44 +0000 (19:51 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 12 Jul 2013 20:48:52 +0000 (16:48 -0400)
commit35f7a14fc1180164d6358a5885031fc187ef1bfa
treed1d8d9e04e9e80af818e7ab82ca8307668529da0
parent1c327d962fc420aea046c16215a552710bde8231
nfsd4: fix minorversion support interface

You can turn on or off support for minorversions using e.g.

echo "-4.2" >/proc/fs/nfsd/versions

However, the current implementation is a little wonky.  For example, the
above will turn off 4.2 support, but it will also turn *on* 4.1 support.

This didn't matter as long as we only had 2 minorversions, which was
true till very recently.

And do a little cleanup here.

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