Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117523
b: refs/heads/master
c: f115a14
h: refs/heads/master
i:
  117521: fe5bca4
  117519: e135418
v: v3
  • Loading branch information
Al Viro committed Oct 21, 2008
1 parent f2de5f6 commit 41a2ab8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 4099a96693ab58a95b3ecf19704973cd0f1bdf9d
refs/heads/master: f115a14ae43242b485ed5995a0746e6db59951f2
14 changes: 7 additions & 7 deletions trunk/drivers/block/viodasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ struct viodasd_device {
/*
* External open entry point.
*/
static int viodasd_open(struct inode *ino, struct file *fil)
static int viodasd_open(struct block_device *bdev, fmode_t mode)
{
struct viodasd_device *d = ino->i_bdev->bd_disk->private_data;
struct viodasd_device *d = bdev->bd_disk->private_data;
HvLpEvent_Rc hvrc;
struct viodasd_waitevent we;
u16 flags = 0;

if (d->read_only) {
if ((fil != NULL) && (fil->f_mode & FMODE_WRITE))
if (mode & FMODE_WRITE)
return -EROFS;
flags = vioblockflags_ro;
}
Expand Down Expand Up @@ -179,9 +179,9 @@ static int viodasd_open(struct inode *ino, struct file *fil)
/*
* External release entry point.
*/
static int viodasd_release(struct inode *ino, struct file *fil)
static int viodasd_release(struct gendisk *disk, fmode_t mode)
{
struct viodasd_device *d = ino->i_bdev->bd_disk->private_data;
struct viodasd_device *d = disk->private_data;
HvLpEvent_Rc hvrc;

/* Send the event to OS/400. We DON'T expect a response */
Expand Down Expand Up @@ -221,8 +221,8 @@ static int viodasd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
*/
static struct block_device_operations viodasd_fops = {
.owner = THIS_MODULE,
.__open = viodasd_open,
.__release = viodasd_release,
.open = viodasd_open,
.release = viodasd_release,
.getgeo = viodasd_getgeo,
};

Expand Down

0 comments on commit 41a2ab8

Please sign in to comment.