]> 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)
commit7ddfca559da4cdf59f9b6a09af8e1736481826f8
tree5830ab17b4adba9246dc3de557730e585675966b
parent87b75a1c2ef16d6e1cf1c16b403c8334af98b9c9
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