Skip to content
Commit a3df2e45 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: add a BUILD_BUG_ON() for adding more bio flags than we have space



We have BIO_FLAG_LAST in the enum for bio specific flags, but it's
not used to check that we're not exceeding the size of them. Add
such a check.

Reviewed-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c9c77418
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment