Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f3f6015b
Commit
f3f6015b
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch i2o
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
5d9a54b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
drivers/message/i2o/i2o_block.c
drivers/message/i2o/i2o_block.c
+8
-9
No files found.
drivers/message/i2o/i2o_block.c
View file @
f3f6015b
...
...
@@ -575,9 +575,9 @@ static void i2o_block_biosparam(unsigned long capacity, unsigned short *cyls,
*
* Returns 0 on success or negative error code on failure.
*/
static
int
i2o_block_open
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
i2o_block_open
(
struct
block_device
*
bdev
,
fmode_t
mod
e
)
{
struct
i2o_block_device
*
dev
=
inode
->
i_
bdev
->
bd_disk
->
private_data
;
struct
i2o_block_device
*
dev
=
bdev
->
bd_disk
->
private_data
;
if
(
!
dev
->
i2o_dev
)
return
-
ENODEV
;
...
...
@@ -604,9 +604,8 @@ static int i2o_block_open(struct inode *inode, struct file *file)
*
* Returns 0 on success or negative error code on failure.
*/
static
int
i2o_block_release
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
i2o_block_release
(
struct
gendisk
*
disk
,
fmode_t
mod
e
)
{
struct
gendisk
*
disk
=
inode
->
i_bdev
->
bd_disk
;
struct
i2o_block_device
*
dev
=
disk
->
private_data
;
u8
operation
;
...
...
@@ -653,10 +652,10 @@ static int i2o_block_getgeo(struct block_device *bdev, struct hd_geometry *geo)
*
* Return 0 on success or negative error on failure.
*/
static
int
i2o_block_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
static
int
i2o_block_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
gendisk
*
disk
=
inode
->
i_
bdev
->
bd_disk
;
struct
gendisk
*
disk
=
bdev
->
bd_disk
;
struct
i2o_block_device
*
dev
=
disk
->
private_data
;
/* Anyone capable of this syscall can do *real bad* things */
...
...
@@ -931,9 +930,9 @@ static void i2o_block_request_fn(struct request_queue *q)
/* I2O Block device operations definition */
static
struct
block_device_operations
i2o_block_fops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
i2o_block_open
,
.
__
release
=
i2o_block_release
,
.
_
_ioctl
=
i2o_block_ioctl
,
.
open
=
i2o_block_open
,
.
release
=
i2o_block_release
,
.
locked
_ioctl
=
i2o_block_ioctl
,
.
getgeo
=
i2o_block_getgeo
,
.
media_changed
=
i2o_block_media_changed
};
...
...
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