summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-04-30 00:54:36 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 08:29:50 -0700
commit76f1418b485da2707531178e517bbb5cf06b3c76 (patch)
tree138a012d965ebc284163f42e0ff5786c6de1cda5 /include
parenta42dde04152750426cc620fd277e80fffae2f65a (diff)
downloadlinux-76f1418b485da2707531178e517bbb5cf06b3c76.tar.bz2
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')
-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 @@
struct page;
struct device;
+struct dentry;
/*
* Bits in backing_dev_info.state
@@ -55,6 +56,11 @@ struct backing_dev_info {
unsigned int max_ratio, max_prop_frac;
struct device *dev;
+
+#ifdef CONFIG_DEBUG_FS
+ struct dentry *debug_dir;
+ struct dentry *debug_stats;
+#endif
};
int bdi_init(struct backing_dev_info *bdi);