Unverified Commit c61b557e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14192 nfs: fix the loss of superblock's initialized flags

parents 098a595b 0a5788bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ struct dentry *nfs4_try_mount(int flags, const char *dev_name,
	res = nfs_follow_remote_path(root_mnt, export_path);

	if (!IS_ERR(res))
		res->d_sb->s_flags = flags;
		res->d_sb->s_flags |= (flags & SB_RDONLY);
	dfprintk(MOUNT, "<-- nfs4_try_mount() = %d%s\n",
		 PTR_ERR_OR_ZERO(res),
		 IS_ERR(res) ? " [error]" : "");