History

block: move the bdi from the request_queue to the gendisk

The backing device information only makes sense for file system I/O, and thus belongs into the gendisk and not the lower level request_queue structure. Move it there.

Christoph Hellwig committed 5 years ago

Commit edb08721 parent 100816214 files · +58 −63Browse files

Showing the changes to include/linux/blkdev.h (1 of 14 files). Show all

Unified · Split

include/linux/blkdev.h+0−3
@@ -11,7 +11,6 @@ · 10 unmodified lines
11#include <linux/minmax.h>11#include <linux/minmax.h>
12#include <linux/timer.h>12#include <linux/timer.h>
13#include <linux/workqueue.h>13#include <linux/workqueue.h>
14#include <linux/backing-dev-defs.h>
15#include <linux/wait.h>14#include <linux/wait.h>
16#include <linux/mempool.h>15#include <linux/mempool.h>
17#include <linux/pfn.h>16#include <linux/pfn.h>
@@ -398,8 +397,6 @@ struct request_queue { · 380 unmodified lines
398 struct blk_mq_hw_ctx **queue_hw_ctx;397 struct blk_mq_hw_ctx **queue_hw_ctx;
399 unsigned int nr_hw_queues;398 unsigned int nr_hw_queues;
400 399
401 struct backing_dev_info *backing_dev_info;
402
403 /*400 /*
404 * The queue owner gets to use this for whatever they like.401 * The queue owner gets to use this for whatever they like.
405 * ll_rw_blk doesn't touch it.402 * ll_rw_blk doesn't touch it.