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
f3f68b36
Commit
f3f68b36
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch xyspace
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a63c848b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
drivers/block/xsysace.c
drivers/block/xsysace.c
+7
-8
No files found.
drivers/block/xsysace.c
View file @
f3f68b36
...
@@ -870,25 +870,24 @@ static int ace_revalidate_disk(struct gendisk *gd)
...
@@ -870,25 +870,24 @@ static int ace_revalidate_disk(struct gendisk *gd)
return
ace
->
id_result
;
return
ace
->
id_result
;
}
}
static
int
ace_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
ace_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
{
struct
ace_device
*
ace
=
inode
->
i_
bdev
->
bd_disk
->
private_data
;
struct
ace_device
*
ace
=
bdev
->
bd_disk
->
private_data
;
unsigned
long
flags
;
unsigned
long
flags
;
dev_dbg
(
ace
->
dev
,
"ace_open() users=%i
\n
"
,
ace
->
users
+
1
);
dev_dbg
(
ace
->
dev
,
"ace_open() users=%i
\n
"
,
ace
->
users
+
1
);
filp
->
private_data
=
ace
;
spin_lock_irqsave
(
&
ace
->
lock
,
flags
);
spin_lock_irqsave
(
&
ace
->
lock
,
flags
);
ace
->
users
++
;
ace
->
users
++
;
spin_unlock_irqrestore
(
&
ace
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
ace
->
lock
,
flags
);
check_disk_change
(
inode
->
i_
bdev
);
check_disk_change
(
bdev
);
return
0
;
return
0
;
}
}
static
int
ace_release
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
ace_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
{
struct
ace_device
*
ace
=
inode
->
i_bdev
->
bd_
disk
->
private_data
;
struct
ace_device
*
ace
=
disk
->
private_data
;
unsigned
long
flags
;
unsigned
long
flags
;
u16
val
;
u16
val
;
...
@@ -919,8 +918,8 @@ static int ace_getgeo(struct block_device *bdev, struct hd_geometry *geo)
...
@@ -919,8 +918,8 @@ static int ace_getgeo(struct block_device *bdev, struct hd_geometry *geo)
static
struct
block_device_operations
ace_fops
=
{
static
struct
block_device_operations
ace_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
__
open
=
ace_open
,
.
open
=
ace_open
,
.
__
release
=
ace_release
,
.
release
=
ace_release
,
.
media_changed
=
ace_media_changed
,
.
media_changed
=
ace_media_changed
,
.
revalidate_disk
=
ace_revalidate_disk
,
.
revalidate_disk
=
ace_revalidate_disk
,
.
getgeo
=
ace_getgeo
,
.
getgeo
=
ace_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