aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-05-29 10:09:00 -0400
committerJens Axboe <axboe@fb.com>2014-05-29 10:09:00 -0400
commit4d92a9beb39d80a7d8ff7c04ae12a10290105ae5 (patch)
tree6c0c28e1e1e3edf9958bedbe9d5e6c2f84a13b92 /include
parentcdef54dd85ad66e77262ea57796a3e81683dd5d6 (diff)
block: remove 'magic' from struct blk_plug
I don't think we've ever caught any bugs with this, and there's the list poisoning for the plug lists to catch uninitialized cases. So remove the magic member and save 8 bytes in the struct. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blkdev.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 913f1c2d3be0..098304576d51 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1060,7 +1060,6 @@ static inline void blk_post_runtime_resume(struct request_queue *q, int err) {}
1060 * schedule() where blk_schedule_flush_plug() is called. 1060 * schedule() where blk_schedule_flush_plug() is called.
1061 */ 1061 */
1062struct blk_plug { 1062struct blk_plug {
1063 unsigned long magic; /* detect uninitialized use-cases */
1064 struct list_head list; /* requests */ 1063 struct list_head list; /* requests */
1065 struct list_head mq_list; /* blk-mq requests */ 1064 struct list_head mq_list; /* blk-mq requests */
1066 struct list_head cb_list; /* md requires an unplug callback */ 1065 struct list_head cb_list; /* md requires an unplug callback */