nfs: fix broken handling of the softreval mount option
[ Upstream commit085d16d5f9] Turns out that ever since this mount option was added, passing `softreval` in NFS mount options cancelled all other flags while not affecting the underlying flag `NFS_MOUNT_SOFTREVAL`. Fixes:c74dfe97c1("NFS: Add mount option 'softreval'") Signed-off-by: Dan Aloni <dan.aloni@vastdata.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
49c10784b9
commit
2cb8689f45
+1
-1
@@ -476,7 +476,7 @@ static int nfs_fs_context_parse_param(struct fs_context *fc,
|
|||||||
if (result.negated)
|
if (result.negated)
|
||||||
ctx->flags &= ~NFS_MOUNT_SOFTREVAL;
|
ctx->flags &= ~NFS_MOUNT_SOFTREVAL;
|
||||||
else
|
else
|
||||||
ctx->flags &= NFS_MOUNT_SOFTREVAL;
|
ctx->flags |= NFS_MOUNT_SOFTREVAL;
|
||||||
break;
|
break;
|
||||||
case Opt_posix:
|
case Opt_posix:
|
||||||
if (result.negated)
|
if (result.negated)
|
||||||
|
|||||||
Reference in New Issue
Block a user