aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs_sb.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-02-12 16:49:48 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2021-02-16 16:11:14 -0500
commited7bcdb374d20fab9e9dc36853a6735c047ad1b1 (patch)
treea2db953e95a3d23cc6e276c6bd7fe6a1f9967b81 /include/linux/nfs_fs_sb.h
parentNFS: 'flags' field should be unsigned in struct nfs_server (diff)
downloadlinux-dev-ed7bcdb374d20fab9e9dc36853a6735c047ad1b1.tar.xz
linux-dev-ed7bcdb374d20fab9e9dc36853a6735c047ad1b1.zip
NFS: Add support for eager writes
Support eager writing to the server, meaning that we write the data to cache on the server, and wait for that to complete. This ensures that we see ENOSPC errors immediately. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/nfs_fs_sb.h')
-rw-r--r--include/linux/nfs_fs_sb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
index 962e8313f007..6f76b32a0238 100644
--- a/include/linux/nfs_fs_sb.h
+++ b/include/linux/nfs_fs_sb.h
@@ -153,6 +153,8 @@ struct nfs_server {
#define NFS_MOUNT_LOCAL_FCNTL 0x200000
#define NFS_MOUNT_SOFTERR 0x400000
#define NFS_MOUNT_SOFTREVAL 0x800000
+#define NFS_MOUNT_WRITE_EAGER 0x01000000
+#define NFS_MOUNT_WRITE_WAIT 0x02000000
unsigned int caps; /* server capabilities */
unsigned int rsize; /* read size */