projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c17260
)
NFS: Support the '-owrite=' option in /proc/self/mounts and mountinfo
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Wed, 17 Feb 2021 15:12:33 +0000
(10:12 -0500)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Wed, 17 Feb 2021 20:36:03 +0000
(15:36 -0500)
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/super.c
patch
|
blob
|
history
diff --git
a/fs/nfs/super.c
b/fs/nfs/super.c
index 4034102010f05599024f699d8f48e89c2d3217a8..bd22c933860050c4887066e675d9d4e5265eec35 100644
(file)
--- a/
fs/nfs/super.c
+++ b/
fs/nfs/super.c
@@
-511,6
+511,13
@@
static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,
seq_puts(m, ",local_lock=flock");
else
seq_puts(m, ",local_lock=posix");
+
+ if (nfss->flags & NFS_MOUNT_WRITE_EAGER) {
+ if (nfss->flags & NFS_MOUNT_WRITE_WAIT)
+ seq_puts(m, ",write=wait");
+ else
+ seq_puts(m, ",write=eager");
+ }
}
/*