]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Fix slab name "biovec-(1<<(21-12))"
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 21 Mar 2018 16:49:29 +0000 (12:49 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Mar 2018 01:25:22 +0000 (19:25 -0600)
I'm getting a slab named "biovec-(1<<(21-12))". It is caused by unintended
expansion of the macro BIO_MAX_PAGES. This patch renames it to biovec-max.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c

index e1708db48258cb9bc8487d732074f476dc1fb520..53e0f0a1ed940ad14e57fa870f604059f1173807 100644 (file)
@@ -43,9 +43,9 @@
  * break badly! cannot be bigger than what you can fit into an
  * unsigned short
  */
-#define BV(x) { .nr_vecs = x, .name = "biovec-"__stringify(x) }
+#define BV(x, n) { .nr_vecs = x, .name = "biovec-"#n }
 static struct biovec_slab bvec_slabs[BVEC_POOL_NR] __read_mostly = {
-       BV(1), BV(4), BV(16), BV(64), BV(128), BV(BIO_MAX_PAGES),
+       BV(1, 1), BV(4, 4), BV(16, 16), BV(64, 64), BV(128, 128), BV(BIO_MAX_PAGES, max),
 };
 #undef BV