aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-01-14 16:32:07 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-14 16:32:07 -0500
commit6ab82196492a0b6968a654a06aae923b28afef0d (patch)
tree8affe1097bba194fe677d5399f47693dc0363dd8 /include/linux/fs.h
parent6f7f7caab259026234277b659485d22c1dcb1ab4 (diff)
parent49731baa41df404c2c3f44555869ab387363af43 (diff)
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block: block: restore multiple bd_link_disk_holder() support block cfq: compensate preempted queue even if it has no slice assigned block cfq: make queue preempt work for queues from different workload
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index ed6ee473cc8a..08824e0ef381 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -666,7 +666,7 @@ struct block_device {
666 int bd_holders; 666 int bd_holders;
667 bool bd_write_holder; 667 bool bd_write_holder;
668#ifdef CONFIG_SYSFS 668#ifdef CONFIG_SYSFS
669 struct gendisk * bd_holder_disk; /* for sysfs slave linkng */ 669 struct list_head bd_holder_disks;
670#endif 670#endif
671 struct block_device * bd_contains; 671 struct block_device * bd_contains;
672 unsigned bd_block_size; 672 unsigned bd_block_size;
@@ -2057,12 +2057,18 @@ extern struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode,
2057extern int blkdev_put(struct block_device *bdev, fmode_t mode); 2057extern int blkdev_put(struct block_device *bdev, fmode_t mode);
2058#ifdef CONFIG_SYSFS 2058#ifdef CONFIG_SYSFS
2059extern int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk); 2059extern int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
2060extern void bd_unlink_disk_holder(struct block_device *bdev,
2061 struct gendisk *disk);
2060#else 2062#else
2061static inline int bd_link_disk_holder(struct block_device *bdev, 2063static inline int bd_link_disk_holder(struct block_device *bdev,
2062 struct gendisk *disk) 2064 struct gendisk *disk)
2063{ 2065{
2064 return 0; 2066 return 0;
2065} 2067}
2068static inline void bd_unlink_disk_holder(struct block_device *bdev,
2069 struct gendisk *disk)
2070{
2071}
2066#endif 2072#endif
2067#endif 2073#endif
2068 2074