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>
This commit is contained in:
Tejun Heo
2008-08-25 19:56:09 +09:00
committed by Jens Axboe
parent 548b10eb29
commit e561052149
3 changed files with 6 additions and 11 deletions

View File

@@ -591,6 +591,9 @@ extern void blk_register_region(dev_t devt, unsigned long range,
void *data);
extern void blk_unregister_region(dev_t devt, unsigned long range);
extern ssize_t part_size_show(struct device *dev,
struct device_attribute *attr, char *buf);
#else /* CONFIG_BLOCK */
static inline void printk_all_partitions(void) { }