Tejun Heo ff9ea32381 block, bdi: an active gendisk always has a request_queue associated with it
bdev_get_queue() returns the request_queue associated with the
specified block_device.  blk_get_backing_dev_info() makes use of
bdev_get_queue() to determine the associated bdi given a block_device.

All the callers of bdev_get_queue() including
blk_get_backing_dev_info() assume that bdev_get_queue() may return
NULL and implement NULL handling; however, bdev_get_queue() requires
the passed in block_device is opened and attached to its gendisk.
Because an active gendisk always has a valid request_queue associated
with it, bdev_get_queue() can never return NULL and neither can
blk_get_backing_dev_info().

Make it clear that neither of the two functions can return NULL and
remove NULL handling from all the callers.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Chris Mason <clm@fb.com>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2014-09-08 10:00:35 -06:00
..
2014-07-30 09:12:05 +10:00
2014-03-07 16:19:14 +11:00
2013-11-06 16:31:27 -06:00
2014-07-15 08:07:01 +10:00
2013-05-07 18:45:36 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2012-11-19 20:11:24 -06:00
2014-06-25 14:58:08 +10:00
2014-06-25 14:58:08 +10:00
2013-08-12 16:53:39 -05:00
2014-06-25 14:58:08 +10:00
2011-08-12 16:21:35 -05:00
2014-06-25 14:58:08 +10:00
2014-06-25 14:58:08 +10:00
2014-06-25 14:58:08 +10:00
2011-08-12 16:21:35 -05:00
2014-06-25 14:58:08 +10:00
2014-08-04 13:22:49 +10:00
2014-08-04 13:28:20 +10:00
2011-08-12 16:21:35 -05:00
2013-08-12 16:56:06 -05:00
2013-05-07 18:45:36 -05:00
2014-07-15 08:07:01 +10:00
2014-06-25 14:58:08 +10:00
2014-07-24 20:49:57 +10:00
2014-07-30 09:12:05 +10:00
2014-07-30 09:12:05 +10:00
2014-06-25 14:58:08 +10:00
2014-07-30 09:12:05 +10:00
2014-06-25 14:58:08 +10:00
2013-05-07 18:45:36 -05:00