sunvdc.c (086fa5ff0854c676ec333760f4c0154b3b242616) sunvdc.c (8a78362c4eefc1deddbefe2c7f38aabbc2429d6b)
1/* sunvdc.c: Sun LDOM Virtual Disk Client.
2 *
3 * Copyright (C) 2007, 2008 David S. Miller <davem@davemloft.net>
4 */
5
6#include <linux/module.h>
7#include <linux/kernel.h>
8#include <linux/types.h>

--- 677 unchanged lines hidden (view full) ---

686 printk(KERN_ERR PFX "%s: Could not allocate gendisk.\n",
687 port->vio.name);
688 blk_cleanup_queue(q);
689 return -ENOMEM;
690 }
691
692 port->disk = g;
693
1/* sunvdc.c: Sun LDOM Virtual Disk Client.
2 *
3 * Copyright (C) 2007, 2008 David S. Miller <davem@davemloft.net>
4 */
5
6#include <linux/module.h>
7#include <linux/kernel.h>
8#include <linux/types.h>

--- 677 unchanged lines hidden (view full) ---

686 printk(KERN_ERR PFX "%s: Could not allocate gendisk.\n",
687 port->vio.name);
688 blk_cleanup_queue(q);
689 return -ENOMEM;
690 }
691
692 port->disk = g;
693
694 blk_queue_max_hw_segments(q, port->ring_cookies);
695 blk_queue_max_phys_segments(q, port->ring_cookies);
694 blk_queue_max_segments(q, port->ring_cookies);
696 blk_queue_max_hw_sectors(q, port->max_xfer_size);
697 g->major = vdc_major;
698 g->first_minor = port->vio.vdev->dev_no << PARTITION_SHIFT;
699 strcpy(g->disk_name, port->disk_name);
700
701 g->fops = &vdc_fops;
702 g->queue = q;
703 g->private_data = port;

--- 177 unchanged lines hidden ---
695 blk_queue_max_hw_sectors(q, port->max_xfer_size);
696 g->major = vdc_major;
697 g->first_minor = port->vio.vdev->dev_no << PARTITION_SHIFT;
698 strcpy(g->disk_name, port->disk_name);
699
700 g->fops = &vdc_fops;
701 g->queue = q;
702 g->private_data = port;

--- 177 unchanged lines hidden ---