Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117518
b: refs/heads/master
c: b6a8953
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Oct 21, 2008
1 parent 9084190 commit 23f8d84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: c9acf903e0312dcac3a135c37303adc15e6162a9
refs/heads/master: b6a895307a6a8d8c294c57d319ec05286d181dac
18 changes: 9 additions & 9 deletions trunk/drivers/block/paride/pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,9 @@ static int pd_special_command(struct pd_unit *disk,

/* kernel glue structures */

static int pd_open(struct inode *inode, struct file *file)
static int pd_open(struct block_device *bdev, fmode_t mode)
{
struct pd_unit *disk = inode->i_bdev->bd_disk->private_data;
struct pd_unit *disk = bdev->bd_disk->private_data;

disk->access++;

Expand Down Expand Up @@ -758,10 +758,10 @@ static int pd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
return 0;
}

static int pd_ioctl(struct inode *inode, struct file *file,
static int pd_ioctl(struct block_device *bdev, fmode_t mode,
unsigned int cmd, unsigned long arg)
{
struct pd_unit *disk = inode->i_bdev->bd_disk->private_data;
struct pd_unit *disk = bdev->bd_disk->private_data;

switch (cmd) {
case CDROMEJECT:
Expand All @@ -773,9 +773,9 @@ static int pd_ioctl(struct inode *inode, struct file *file,
}
}

static int pd_release(struct inode *inode, struct file *file)
static int pd_release(struct gendisk *p, fmode_t mode)
{
struct pd_unit *disk = inode->i_bdev->bd_disk->private_data;
struct pd_unit *disk = p->private_data;

if (!--disk->access && disk->removable)
pd_special_command(disk, pd_door_unlock);
Expand Down Expand Up @@ -807,9 +807,9 @@ static int pd_revalidate(struct gendisk *p)

static struct block_device_operations pd_fops = {
.owner = THIS_MODULE,
.__open = pd_open,
.__release = pd_release,
.__ioctl = pd_ioctl,
.open = pd_open,
.release = pd_release,
.locked_ioctl = pd_ioctl,
.getgeo = pd_getgeo,
.media_changed = pd_check_media,
.revalidate_disk= pd_revalidate
Expand Down

0 comments on commit 23f8d84

Please sign in to comment.