]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1a92d34b517c8ccf0c6cc5ef4ad80e7e668f834
tree5830ab17b4adba9246dc3de557730e585675966b
parentf8d0c65eb160b5c053836ee08567731268f4f48b
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