提交 0762b23d 编写于 作者: M Maninder Singh 提交者: Jens Axboe

block: use FIELD_SIZEOF to calculate size of a field

use FIELD_SIZEOF instead of open coding
Signed-off-by: NManinder Singh <maninder1.s@samsung.com>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 bb8bd38b
......@@ -3370,7 +3370,7 @@ EXPORT_SYMBOL(blk_post_runtime_resume);
int __init blk_dev_init(void)
{
BUILD_BUG_ON(__REQ_NR_BITS > 8 *
sizeof(((struct request *)0)->cmd_flags));
FIELD_SIZEOF(struct request, cmd_flags));
/* used for unplugging and affects IO latency/throughput - HIGHPRI */
kblockd_workqueue = alloc_workqueue("kblockd",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册