diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-02-12 16:49:48 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-02-16 16:11:14 -0500 |
commit | ed7bcdb374d20fab9e9dc36853a6735c047ad1b1 (patch) | |
tree | a2db953e95a3d23cc6e276c6bd7fe6a1f9967b81 /include/linux/nfs_fs_sb.h | |
parent | 75cfb200cd081d23eb7eaa68deba9e0ab9320070 (diff) | |
download | lwn-ed7bcdb374d20fab9e9dc36853a6735c047ad1b1.tar.gz lwn-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.h | 2 |
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 */ |