Skip to contentSkip to conversation

s390: dasd slab cache alignment.

PATCH New Martin Schwidefsky 1 participant 1 message Aug 16, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: dasd slab cache alignment.

From: Heiko Carstens <[email protected]>

[S390] dasd slab cache alignment.

The dasd_page_cache should return page addresses and therefore the cache must be created with an alignment of PAGE_SIZE.

---

 drivers/s390/block/dasd_devmap.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/s390/block/dasd_devmap.c +3 -2
diff -urpN linux-2.6/drivers/s390/block/dasd_devmap.c linux-2.6-patched/drivers/s390/block/dasd_devmap.c
@@ -264,8 +264,9 @@ dasd_parse_keyword( char *parsestring ) 
 		if (dasd_page_cache)
 			return residual_str;
 		dasd_page_cache =
-			kmem_cache_create("dasd_page_cache", PAGE_SIZE, 0,
-					  SLAB_CACHE_DMA, NULL, NULL );
+			kmem_cache_create("dasd_page_cache", PAGE_SIZE,
+					  PAGE_SIZE, SLAB_CACHE_DMA,
+					  NULL, NULL );
 		if (!dasd_page_cache)
 			MESSAGE(KERN_WARNING, "%s", "Failed to create slab, "
 				"fixed buffer mode disabled.");