diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-05-23 18:44:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 06:54:49 +0200 |
commit | a6e2ba88774bc5870ab3d9664cb86d70415f7402 (patch) | |
tree | 6b2cd66449339a7eadb7edb3e6b211dddaf42a5a /block | |
parent | block: make blk_lookup_devt use the class iterator function (diff) | |
download | linux-a6e2ba88774bc5870ab3d9664cb86d70415f7402.tar.xz linux-a6e2ba88774bc5870ab3d9664cb86d70415f7402.zip |
block: make /proc/diskstats only build if CONFIG_PROC_FS is enabled
These functions are only needed if CONFIG_PROC_FS is enabled, so save
the space when it is not.
This also makes it easier for a patch later in this series to work
properly if CONFIG_PROC_FS is not enabled.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'block')
-rw-r--r-- | block/genhd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/genhd.c b/block/genhd.c index e8c42bfd12be..68a5f28007e4 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -544,6 +544,7 @@ static struct device_type disk_type = { .release = disk_release, }; +#ifdef CONFIG_PROC_FS /* * aggregate disk stat collector. Uses the same stats that the sysfs * entries do, above, but makes them available through one seq_file. @@ -653,6 +654,7 @@ const struct seq_operations diskstats_op = { .stop = diskstats_stop, .show = diskstats_show }; +#endif /* CONFIG_PROC_FS */ static void media_change_notify_thread(struct work_struct *work) { |