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
1111 #include <linux/minmax.h>
1212 #include <linux/timer.h>
1313 #include <linux/workqueue.h>
14−#include <linux/backing-dev-defs.h>
1514 #include <linux/wait.h>
1615 #include <linux/mempool.h>
1716 #include <linux/pfn.h>
@@ -398,8 +397,6 @@ struct request_queue { · 380 unmodified lines
398397 struct blk_mq_hw_ctx **queue_hw_ctx;
399398 unsigned int nr_hw_queues;
400399
401− struct backing_dev_info *backing_dev_info;
402−
403400 /*
404401 * The queue owner gets to use this for whatever they like.
405402 * ll_rw_blk doesn't touch it.