NFS: correctly report misuse of "migration" mount option.
authorNeilBrown <neilb@suse.de>
Thu, 14 Nov 2013 02:00:17 +0000 (13:00 +1100)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 15 Nov 2013 18:41:43 +0000 (13:41 -0500)
commit9e08ef1afb109c2059e7c1e4755fcafd9be37260
tree5830ab17b4adba9246dc3de557730e585675966b
parent6d769f1e1420179d1f83cf1a9cdc585b46c28545
NFS: correctly report misuse of "migration" mount option.

The current test on valid use of the "migration" mount option can never
report an error as it will only do so if
    mnt->version !=4 && mnt->minor_version != 0
(and some other condition), but if that test would succeed, then the previous
test has already gone-to  out_minorversion_mismatch.

So change the && to an || to get correct semantics.

Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c