aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJarod Wilson <[email protected]>2015-05-06 12:26:22 +0800
committerJens Axboe <[email protected]>2015-05-20 09:05:42 -0600
commitbe32417796c2b8a83fe4cbece83bea96ab9e378f (patch)
tree41f52269686b58d2be1190ffbf72b0816993495a /include
parent343df3c79c62b644ce6ff5dff96c9e0be1ecb242 (diff)
block: export blkdev_reread_part() and __blkdev_reread_part()
This patch exports blkdev_reread_part() for block drivers, also introduce __blkdev_reread_part(). For some drivers, such as loop, reread of partitions can be run from the release path, and bd_mutex may already be held prior to calling ioctl_by_bdev(bdev, BLKRRPART, 0), so introduce __blkdev_reread_part for use in such cases. CC: Christoph Hellwig <[email protected]> CC: Jens Axboe <[email protected]> CC: Tejun Heo <[email protected]> CC: Alexander Viro <[email protected]> CC: Markus Pargmann <[email protected]> CC: Stefan Weinhuber <[email protected]> CC: Stefan Haberland <[email protected]> CC: Sebastian Ott <[email protected]> CC: Fabian Frederick <[email protected]> CC: Ming Lei <[email protected]> CC: David Herrmann <[email protected]> CC: Andrew Morton <[email protected]> CC: Peter Zijlstra <[email protected]> CC: [email protected] CC: [email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jarod Wilson <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 35ec87e490b1..1ef63900243c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2279,6 +2279,9 @@ extern struct block_device *blkdev_get_by_path(const char *path, fmode_t mode,
extern struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode,
void *holder);
extern void blkdev_put(struct block_device *bdev, fmode_t mode);
+extern int __blkdev_reread_part(struct block_device *bdev);
+extern int blkdev_reread_part(struct block_device *bdev);
+
#ifdef CONFIG_SYSFS
extern int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
extern void bd_unlink_disk_holder(struct block_device *bdev,