]> asedeno.scripts.mit.edu Git - linux.git/commit
NFSD: fix nfsd_minorversion(.., NFSD_AVAIL)
authorNeilBrown <neilb@suse.com>
Fri, 10 Mar 2017 00:36:39 +0000 (11:36 +1100)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 10 Mar 2017 22:04:50 +0000 (17:04 -0500)
commit928c6fb3a9bfd6c5b287aa3465226add551c13c0
tree6403d69801b516ccd8533a894c709220a17e706b
parentabcb4dacb098a1baca746406a8775e9930f47f3f
NFSD: fix nfsd_minorversion(.., NFSD_AVAIL)

Current code will return 1 if the version is supported,
and -1 if it isn't.
This is confusing and inconsistent with the one place where this
is used.
So change to return 1 if it is supported, and zero if not.
i.e. an error is never returned.

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