]> Git Repo - linux.git/commit - block/bio.c
block: add a BUILD_BUG_ON() for adding more bio flags than we have space
authorJens Axboe <[email protected]>
Mon, 9 Jan 2023 17:45:56 +0000 (10:45 -0700)
committerJens Axboe <[email protected]>
Sun, 29 Jan 2023 22:18:33 +0000 (15:18 -0700)
commita3df2e456c0f9db4cc7f2013eb0beb853945b937
tree42f3c52ad690e18c0749e5b4e52963409d24a1d4
parentc9c77418a98273fe96835c42666f7427b3883f48
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: Damien Le Moal <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/bio.c
This page took 0.050442 seconds and 4 git commands to generate.