diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-02-19 19:53:39 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-03-05 15:44:54 -0500 |
commit | ff778d02bf867e1733a09b34ad6dbb723b024814 (patch) | |
tree | d22e33628b93f31c08089a3bf0ec4cc00a409b7a /fs/nfs/inode.c | |
parent | 8fc795f703c5138e1a8bfb88c69f52632031aa6a (diff) |
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 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 89e98312599d..aa5a831001ab 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1404,6 +1404,7 @@ static void init_once(void *foo) | |||
1404 | INIT_LIST_HEAD(&nfsi->access_cache_inode_lru); | 1404 | INIT_LIST_HEAD(&nfsi->access_cache_inode_lru); |
1405 | INIT_RADIX_TREE(&nfsi->nfs_page_tree, GFP_ATOMIC); | 1405 | INIT_RADIX_TREE(&nfsi->nfs_page_tree, GFP_ATOMIC); |
1406 | nfsi->npages = 0; | 1406 | nfsi->npages = 0; |
1407 | nfsi->ncommit = 0; | ||
1407 | atomic_set(&nfsi->silly_count, 1); | 1408 | atomic_set(&nfsi->silly_count, 1); |
1408 | INIT_HLIST_HEAD(&nfsi->silly_list); | 1409 | INIT_HLIST_HEAD(&nfsi->silly_list); |
1409 | init_waitqueue_head(&nfsi->waitqueue); | 1410 | init_waitqueue_head(&nfsi->waitqueue); |