summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-10-12 18:17:57 +0200
committerJens Axboe <axboe@kernel.dk>2021-10-18 06:17:34 -0600
commit9e8c0d0d4d21d2c2c60132e2c18a73d08a230b42 (patch)
treeab09e024034f211f9bdb61c5e7c83ff55a3f01b2 /block/bio.c
parente9ea15963f3b9d979e1d6d758b8e407775ae6588 (diff)
downloadlinux-9e8c0d0d4d21d2c2c60132e2c18a73d08a230b42.tar.gz
linux-9e8c0d0d4d21d2c2c60132e2c18a73d08a230b42.tar.bz2
linux-9e8c0d0d4d21d2c2c60132e2c18a73d08a230b42.zip
block: remove BIO_BUG_ON
BIO_DEBUG is always defined, so just switch the two instances to use BUG_ON directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20211012161804.991559-2-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/bio.c b/block/bio.c
index a6fb6a0b4295..35b875563c8b 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -156,7 +156,7 @@ out:
void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs)
{
- BIO_BUG_ON(nr_vecs > BIO_MAX_VECS);
+ BUG_ON(nr_vecs > BIO_MAX_VECS);
if (nr_vecs == BIO_MAX_VECS)
mempool_free(bv, pool);
@@ -677,7 +677,7 @@ static void bio_alloc_cache_destroy(struct bio_set *bs)
void bio_put(struct bio *bio)
{
if (unlikely(bio_flagged(bio, BIO_REFFED))) {
- BIO_BUG_ON(!atomic_read(&bio->__bi_cnt));
+ BUG_ON(!atomic_read(&bio->__bi_cnt));
if (!atomic_dec_and_test(&bio->__bi_cnt))
return;
}