aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-04-30 03:54:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 11:29:50 -0400
commit76f1418b485da2707531178e517bbb5cf06b3c76 (patch)
tree138a012d965ebc284163f42e0ff5786c6de1cda5 /include/linux/backing-dev.h
parenta42dde04152750426cc620fd277e80fffae2f65a (diff)
mm: bdi: move statistics to debugfs
Move BDI statistics to debugfs: /sys/kernel/debug/bdi/<bdi>/stats Use postcore_initcall() to initialize the sysfs class and debugfs, because debugfs is initialized in core_initcall(). Update descriptions in ABI documentation. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/backing-dev.h')
-rw-r--r--include/linux/backing-dev.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h
index ad3271d1e90a..c49a2d045e11 100644
--- a/include/linux/backing-dev.h
+++ b/include/linux/backing-dev.h
@@ -16,6 +16,7 @@
16 16
17struct page; 17struct page;
18struct device; 18struct device;
19struct dentry;
19 20
20/* 21/*
21 * Bits in backing_dev_info.state 22 * Bits in backing_dev_info.state
@@ -55,6 +56,11 @@ struct backing_dev_info {
55 unsigned int max_ratio, max_prop_frac; 56 unsigned int max_ratio, max_prop_frac;
56 57
57 struct device *dev; 58 struct device *dev;
59
60#ifdef CONFIG_DEBUG_FS
61 struct dentry *debug_dir;
62 struct dentry *debug_stats;
63#endif
58}; 64};
59 65
60int bdi_init(struct backing_dev_info *bdi); 66int bdi_init(struct backing_dev_info *bdi);