diff options
author | Tejun Heo <tj@kernel.org> | 2008-08-25 06:56:09 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:07 -0400 |
commit | e56105214943ce5f0901d20e972a7cfd0d1d0656 (patch) | |
tree | e7b5abffa47f5bfc664fdbb27025872827514089 /include | |
parent | 548b10eb2959c96cef6fc29fc96e0931eeb53bc5 (diff) |
block: unify sysfs size node handling
Now that capacity and __dev are moved to part0, part0 and others can
share the same method.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/genhd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index ff293ec8b3f7..9cb8380cf0eb 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
@@ -591,6 +591,9 @@ extern void blk_register_region(dev_t devt, unsigned long range, | |||
591 | void *data); | 591 | void *data); |
592 | extern void blk_unregister_region(dev_t devt, unsigned long range); | 592 | extern void blk_unregister_region(dev_t devt, unsigned long range); |
593 | 593 | ||
594 | extern ssize_t part_size_show(struct device *dev, | ||
595 | struct device_attribute *attr, char *buf); | ||
596 | |||
594 | #else /* CONFIG_BLOCK */ | 597 | #else /* CONFIG_BLOCK */ |
595 | 598 | ||
596 | static inline void printk_all_partitions(void) { } | 599 | static inline void printk_all_partitions(void) { } |