Message ID | 1488465504-21967-1-git-send-email-stefan.bader@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index fd66c7d..1809606 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -793,7 +793,8 @@ static int bcache_device_init(struct bcache_device *d, unsigned block_size, } set_capacity(d->disk, sectors); - snprintf(d->disk->disk_name, DISK_NAME_LEN, "bcache%i", minor); + snprintf(d->disk->disk_name, DISK_NAME_LEN, "bcache%i", + minor / BCACHE_MINORS); d->disk->major = bcache_major; d->disk->first_minor = minor;