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
b6a89530
Commit
b6a89530
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch pd
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c9acf903
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
drivers/block/paride/pd.c
drivers/block/paride/pd.c
+9
-9
No files found.
drivers/block/paride/pd.c
View file @
b6a89530
...
...
@@ -728,9 +728,9 @@ static int pd_special_command(struct pd_unit *disk,
/* kernel glue structures */
static
int
pd_open
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
pd_open
(
struct
block_device
*
bdev
,
fmode_t
mod
e
)
{
struct
pd_unit
*
disk
=
inode
->
i_
bdev
->
bd_disk
->
private_data
;
struct
pd_unit
*
disk
=
bdev
->
bd_disk
->
private_data
;
disk
->
access
++
;
...
...
@@ -758,10 +758,10 @@ static int pd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
return
0
;
}
static
int
pd_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
static
int
pd_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
pd_unit
*
disk
=
inode
->
i_
bdev
->
bd_disk
->
private_data
;
struct
pd_unit
*
disk
=
bdev
->
bd_disk
->
private_data
;
switch
(
cmd
)
{
case
CDROMEJECT
:
...
...
@@ -773,9 +773,9 @@ static int pd_ioctl(struct inode *inode, struct file *file,
}
}
static
int
pd_release
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
pd_release
(
struct
gendisk
*
p
,
fmode_t
mod
e
)
{
struct
pd_unit
*
disk
=
inode
->
i_bdev
->
bd_disk
->
private_data
;
struct
pd_unit
*
disk
=
p
->
private_data
;
if
(
!--
disk
->
access
&&
disk
->
removable
)
pd_special_command
(
disk
,
pd_door_unlock
);
...
...
@@ -807,9 +807,9 @@ static int pd_revalidate(struct gendisk *p)
static
struct
block_device_operations
pd_fops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
pd_open
,
.
__
release
=
pd_release
,
.
__ioctl
=
pd_ioctl
,
.
open
=
pd_open
,
.
release
=
pd_release
,
.
locked_ioctl
=
pd_ioctl
,
.
getgeo
=
pd_getgeo
,
.
media_changed
=
pd_check_media
,
.
revalidate_disk
=
pd_revalidate
...
...
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