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
4e109852
Commit
4e109852
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch virtio_blk
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
f115a14a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/block/virtio_blk.c
drivers/block/virtio_blk.c
+4
-4
No files found.
drivers/block/virtio_blk.c
View file @
4e109852
...
@@ -146,11 +146,11 @@ static void do_virtblk_request(struct request_queue *q)
...
@@ -146,11 +146,11 @@ static void do_virtblk_request(struct request_queue *q)
vblk
->
vq
->
vq_ops
->
kick
(
vblk
->
vq
);
vblk
->
vq
->
vq_ops
->
kick
(
vblk
->
vq
);
}
}
static
int
virtblk_ioctl
(
struct
inode
*
inode
,
struct
file
*
filp
,
static
int
virtblk_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mode
,
unsigned
cmd
,
unsigned
long
data
)
unsigned
cmd
,
unsigned
long
data
)
{
{
return
scsi_cmd_ioctl
(
inode
->
i_
bdev
->
bd_disk
->
queue
,
return
scsi_cmd_ioctl
(
bdev
->
bd_disk
->
queue
,
inode
->
i_bdev
->
bd_disk
,
filp
->
f_
mode
,
cmd
,
bdev
->
bd_disk
,
mode
,
cmd
,
(
void
__user
*
)
data
);
(
void
__user
*
)
data
);
}
}
...
@@ -180,7 +180,7 @@ static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo)
...
@@ -180,7 +180,7 @@ static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo)
}
}
static
struct
block_device_operations
virtblk_fops
=
{
static
struct
block_device_operations
virtblk_fops
=
{
.
__ioctl
=
virtblk_ioctl
,
.
locked_ioctl
=
virtblk_ioctl
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
getgeo
=
virtblk_getgeo
,
.
getgeo
=
virtblk_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