summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-02-20 01:53:39 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-03-05 21:44:54 +0100
commitff778d02bf867e1733a09b34ad6dbb723b024814 (patch)
treed22e33628b93f31c08089a3bf0ec4cc00a409b7a /include
parentNFS: Cleanup - move nfs_write_inode() into fs/nfs/write.c (diff)
downloadlinux-ff778d02bf867e1733a09b34ad6dbb723b024814.tar.xz
linux-ff778d02bf867e1733a09b34ad6dbb723b024814.zip
NFS: Add a count of the number of unstable writes carried by an inode
In order to know when we should do opportunistic commits of the unstable writes, when the VM is doing a background flush, we add a field to count the number of unstable writes. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfs_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 384ea3ef2863..309217f46e28 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -166,6 +166,7 @@ struct nfs_inode {
struct radix_tree_root nfs_page_tree;
unsigned long npages;
+ unsigned long ncommit;
/* Open contexts for shared mmap writes */
struct list_head open_files;