All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix slab name "biovec-(1<<(21-12))"
@ 2018-03-21 16:49 Mikulas Patocka
  2018-03-22  1:25 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Mikulas Patocka @ 2018-03-21 16:49 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, dm-devel

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+

---
 block/bio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6/block/bio.c
===================================================================
--- linux-2.6.orig/block/bio.c	2018-02-14 20:23:35.648255000 +0100
+++ linux-2.6/block/bio.c	2018-03-14 14:51:35.539999000 +0100
@@ -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
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix slab name "biovec-(1<<(21-12))"
  2018-03-21 16:49 [PATCH] Fix slab name "biovec-(1<<(21-12))" Mikulas Patocka
@ 2018-03-22  1:25 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2018-03-22  1:25 UTC (permalink / raw)
  To: Mikulas Patocka; +Cc: linux-block, dm-devel

On 3/21/18 10:49 AM, Mikulas Patocka wrote:
> 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.

Applied, thanks.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-22  1:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-21 16:49 [PATCH] Fix slab name "biovec-(1<<(21-12))" Mikulas Patocka
2018-03-22  1:25 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.