Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f115a14a
Commit
f115a14a
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch viodasd
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4099a966
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/block/viodasd.c
drivers/block/viodasd.c
+7
-7
No files found.
drivers/block/viodasd.c
View file @
f115a14a
...
...
@@ -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
;
}
...
...
@@ -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 */
...
...
@@ -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
,
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment