aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/fs_context.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-02-12 16:41:19 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2021-02-16 16:11:14 -0500
commit6c17260ca4aeb17d11461647c6b7eefcc2602acc (patch)
treeccd31b29c6c7fc54fc9852d73b556046ca1154d7 /fs/nfs/fs_context.c
parentNFS: Add mount options supporting eager writes (diff)
downloadlinux-dev-6c17260ca4aeb17d11461647c6b7eefcc2602acc.tar.xz
linux-dev-6c17260ca4aeb17d11461647c6b7eefcc2602acc.zip
NFS: Set the stable writes flag when initialising the super block
We need to wait for outstanding writes on the page to complete before we can update it. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/fs_context.c')
-rw-r--r--fs/nfs/fs_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c
index b6be02aa79f0..971a9251c1d9 100644
--- a/fs/nfs/fs_context.c
+++ b/fs/nfs/fs_context.c
@@ -1512,6 +1512,8 @@ static int nfs_init_fs_context(struct fs_context *fc)
ctx->selected_flavor = RPC_AUTH_MAXFLAVOR;
ctx->minorversion = 0;
ctx->need_mount = true;
+
+ fc->s_iflags |= SB_I_STABLE_WRITES;
}
fc->fs_private = ctx;
fc->ops = &nfs_fs_context_ops;