summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2009-12-18 13:51:57 -0800
committerSage Weil <sage@newdream.net>2009-12-21 16:39:56 -0800
commit2baba25019ec564cd247af74013873d69a0b8190 (patch)
treec0995b8087cff771dd51aaf1194fd238f4490f01 /fs/ceph/super.h
parentdbd646a851713bec5bfff40ecf624b2e78518fe5 (diff)
downloadop-kernel-dev-2baba25019ec564cd247af74013873d69a0b8190.zip
op-kernel-dev-2baba25019ec564cd247af74013873d69a0b8190.tar.gz
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 2304bd2..62d9ae4 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -59,6 +59,7 @@ struct ceph_mount_args {
int wsize;
int rsize; /* max readahead */
int max_readdir; /* max readdir size */
+ int congestion_kb; /* max readdir size */
int osd_timeout;
char *snapdir_name; /* default ".snap" */
char *name;
@@ -136,6 +137,7 @@ struct ceph_client {
struct workqueue_struct *wb_wq;
struct workqueue_struct *pg_inv_wq;
struct workqueue_struct *trunc_wq;
+ atomic_long_t writeback_count;
struct backing_dev_info backing_dev_info;
@@ -143,6 +145,7 @@ struct ceph_client {
struct dentry *debugfs_monmap;
struct dentry *debugfs_mdsmap, *debugfs_osdmap;
struct dentry *debugfs_dir, *debugfs_dentry_lru, *debugfs_caps;
+ struct dentry *debugfs_congestion_kb;
struct dentry *debugfs_bdi;
#endif
};
OpenPOWER on IntegriCloud