summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust2007-07-25 20:09:54 +0200
committerTrond Myklebust2007-10-09 23:15:23 +0200
commit7b159fc18d417980f57aef64cab3417ee6af70f8 (patch)
tree880f31179a9836ad9cd63b91dd6d77b61b01017c /include/linux/nfs_fs.h
parentNFS: Writeback optimisation (diff)
downloadkernel-qcow2-linux-7b159fc18d417980f57aef64cab3417ee6af70f8.tar.gz
kernel-qcow2-linux-7b159fc18d417980f57aef64cab3417ee6af70f8.tar.xz
kernel-qcow2-linux-7b159fc18d417980f57aef64cab3417ee6af70f8.zip
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;