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
a63c848b
Commit
a63c848b
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch xen
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
961846ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
drivers/block/xen-blkfront.c
drivers/block/xen-blkfront.c
+9
-10
No files found.
drivers/block/xen-blkfront.c
View file @
a63c848b
...
...
@@ -156,11 +156,10 @@ static int blkif_getgeo(struct block_device *bd, struct hd_geometry *hg)
return
0
;
}
static
int
blkif_ioctl
(
struct
inode
*
inode
,
struct
file
*
filep
,
static
int
blkif_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mode
,
unsigned
command
,
unsigned
long
argument
)
{
struct
blkfront_info
*
info
=
inode
->
i_bdev
->
bd_disk
->
private_data
;
struct
blkfront_info
*
info
=
bdev
->
bd_disk
->
private_data
;
int
i
;
dev_dbg
(
&
info
->
xbdev
->
dev
,
"command: 0x%x, argument: 0x%lx
\n
"
,
...
...
@@ -1014,16 +1013,16 @@ static int blkfront_is_ready(struct xenbus_device *dev)
return
info
->
is_ready
;
}
static
int
blkif_open
(
struct
inode
*
inode
,
struct
file
*
filep
)
static
int
blkif_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
struct
blkfront_info
*
info
=
inode
->
i_
bdev
->
bd_disk
->
private_data
;
struct
blkfront_info
*
info
=
bdev
->
bd_disk
->
private_data
;
info
->
users
++
;
return
0
;
}
static
int
blkif_release
(
struct
inode
*
inode
,
struct
file
*
filep
)
static
int
blkif_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
struct
blkfront_info
*
info
=
inode
->
i_bdev
->
bd_
disk
->
private_data
;
struct
blkfront_info
*
info
=
disk
->
private_data
;
info
->
users
--
;
if
(
info
->
users
==
0
)
{
/* Check whether we have been instructed to close. We will
...
...
@@ -1041,10 +1040,10 @@ static int blkif_release(struct inode *inode, struct file *filep)
static
struct
block_device_operations
xlvbd_block_fops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
blkif_open
,
.
__
release
=
blkif_release
,
.
open
=
blkif_open
,
.
release
=
blkif_release
,
.
getgeo
=
blkif_getgeo
,
.
ioctl
=
blkif_ioctl
,
.
locked_
ioctl
=
blkif_ioctl
,
};
...
...
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