Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0762b23d authored by Maninder Singh's avatar Maninder Singh Committed by Jens Axboe
Browse files

block: use FIELD_SIZEOF to calculate size of a field



use FIELD_SIZEOF instead of open coding

Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent bb8bd38b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",