aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2009-12-18 16:51:57 -0500
committerSage Weil <sage@newdream.net>2009-12-21 19:39:56 -0500
commit2baba25019ec564cd247af74013873d69a0b8190 (patch)
treec0995b8087cff771dd51aaf1194fd238f4490f01 /fs/ceph/super.h
parentdbd646a851713bec5bfff40ecf624b2e78518fe5 (diff)
ceph: writeback congestion control
Set bdi congestion bit when amount of write data in flight exceeds adjustable threshold. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 2304bd2844a4..62d9ae482d72 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -59,6 +59,7 @@ struct ceph_mount_args {
59 int wsize; 59 int wsize;
60 int rsize; /* max readahead */ 60 int rsize; /* max readahead */
61 int max_readdir; /* max readdir size */ 61 int max_readdir; /* max readdir size */
62 int congestion_kb; /* max readdir size */
62 int osd_timeout; 63 int osd_timeout;
63 char *snapdir_name; /* default ".snap" */ 64 char *snapdir_name; /* default ".snap" */
64 char *name; 65 char *name;
@@ -136,6 +137,7 @@ struct ceph_client {
136 struct workqueue_struct *wb_wq; 137 struct workqueue_struct *wb_wq;
137 struct workqueue_struct *pg_inv_wq; 138 struct workqueue_struct *pg_inv_wq;
138 struct workqueue_struct *trunc_wq; 139 struct workqueue_struct *trunc_wq;
140 atomic_long_t writeback_count;
139 141
140 struct backing_dev_info backing_dev_info; 142 struct backing_dev_info backing_dev_info;
141 143
@@ -143,6 +145,7 @@ struct ceph_client {
143 struct dentry *debugfs_monmap; 145 struct dentry *debugfs_monmap;
144 struct dentry *debugfs_mdsmap, *debugfs_osdmap; 146 struct dentry *debugfs_mdsmap, *debugfs_osdmap;
145 struct dentry *debugfs_dir, *debugfs_dentry_lru, *debugfs_caps; 147 struct dentry *debugfs_dir, *debugfs_dentry_lru, *debugfs_caps;
148 struct dentry *debugfs_congestion_kb;
146 struct dentry *debugfs_bdi; 149 struct dentry *debugfs_bdi;
147#endif 150#endif
148}; 151};