Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117526
b: refs/heads/master
c: a63c848
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Oct 21, 2008
1 parent ca406e5 commit 2676e3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 961846ca5aae2f39d061e057ae6ad0b54b134008
refs/heads/master: a63c848b04052acac653d6164160488d6c52ff9e
19 changes: 9 additions & 10 deletions trunk/drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,10 @@ static int blkif_getgeo(struct block_device *bd, struct hd_geometry *hg)
return 0;
}

static int blkif_ioctl(struct inode *inode, struct file *filep,
static int blkif_ioctl(struct block_device *bdev, fmode_t mode,
unsigned command, unsigned long argument)
{
struct blkfront_info *info =
inode->i_bdev->bd_disk->private_data;
struct blkfront_info *info = bdev->bd_disk->private_data;
int i;

dev_dbg(&info->xbdev->dev, "command: 0x%x, argument: 0x%lx\n",
Expand Down Expand Up @@ -1014,16 +1013,16 @@ static int blkfront_is_ready(struct xenbus_device *dev)
return info->is_ready;
}

static int blkif_open(struct inode *inode, struct file *filep)
static int blkif_open(struct block_device *bdev, fmode_t mode)
{
struct blkfront_info *info = inode->i_bdev->bd_disk->private_data;
struct blkfront_info *info = bdev->bd_disk->private_data;
info->users++;
return 0;
}

static int blkif_release(struct inode *inode, struct file *filep)
static int blkif_release(struct gendisk *disk, fmode_t mode)
{
struct blkfront_info *info = inode->i_bdev->bd_disk->private_data;
struct blkfront_info *info = disk->private_data;
info->users--;
if (info->users == 0) {
/* Check whether we have been instructed to close. We will
Expand All @@ -1041,10 +1040,10 @@ static int blkif_release(struct inode *inode, struct file *filep)
static struct block_device_operations xlvbd_block_fops =
{
.owner = THIS_MODULE,
.__open = blkif_open,
.__release = blkif_release,
.open = blkif_open,
.release = blkif_release,
.getgeo = blkif_getgeo,
.ioctl = blkif_ioctl,
.locked_ioctl = blkif_ioctl,
};


Expand Down

0 comments on commit 2676e3c

Please sign in to comment.