summaryrefslogtreecommitdiff
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-25 22:09:54 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-10 01:15:23 +0400
commit7b159fc18d417980f57aef64cab3417ee6af70f8 (patch)
tree880f31179a9836ad9cd63b91dd6d77b61b01017c /include/linux/nfs_fs.h
parent34901f70d119d88126e7390351b8c780646628e1 (diff)
downloadlinux-7b159fc18d417980f57aef64cab3417ee6af70f8.tar.xz
NFS: Fall back to synchronous writes when a background write errors...
This helps prevent huge queues of background writes from building up whenever the server runs out of disk or quota space, or if someone changes the file access modes behind our backs. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 15eec27cb60b..1d1343fd2ddd 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -77,6 +77,9 @@ struct nfs_open_context {
struct nfs4_state *state;
fl_owner_t lockowner;
int mode;
+
+ unsigned long flags;
+#define NFS_CONTEXT_ERROR_WRITE (0)
int error;
struct list_head list;