diff options
author | Maninder Singh <maninder1.s@samsung.com> | 2015-07-07 10:11:07 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-07-07 16:47:37 +0300 |
commit | 0762b23d23c1f23beab91a3af0fa89749b75f03c (patch) | |
tree | 0e4c71efb56b0c0d87861c467dbad1fca4cea73f /block/blk-core.c | |
parent | bb8bd38b9a1685334b73e8c62e128cbedb875867 (diff) | |
download | linux-0762b23d23c1f23beab91a3af0fa89749b75f03c.tar.xz |
block: use FIELD_SIZEOF to calculate size of a field
use FIELD_SIZEOF instead of open coding
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 82819e68f58b..627ed0c593fb 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -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", |