aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-25 14:09:54 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:15:23 -0400
commit7b159fc18d417980f57aef64cab3417ee6af70f8 (patch)
tree880f31179a9836ad9cd63b91dd6d77b61b01017c /include
parent34901f70d119d88126e7390351b8c780646628e1 (diff)
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')
-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 {
77 struct nfs4_state *state; 77 struct nfs4_state *state;
78 fl_owner_t lockowner; 78 fl_owner_t lockowner;
79 int mode; 79 int mode;
80
81 unsigned long flags;
82#define NFS_CONTEXT_ERROR_WRITE (0)
80 int error; 83 int error;
81 84
82 struct list_head list; 85 struct list_head list;