Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
47844fad
Commit
47844fad
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch cpqarray
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ef7822c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
drivers/block/cpqarray.c
drivers/block/cpqarray.c
+16
-16
No files found.
drivers/block/cpqarray.c
View file @
47844fad
...
...
@@ -156,9 +156,9 @@ static int sendcmd(
unsigned
int
blkcnt
,
unsigned
int
log_unit
);
static
int
ida_open
(
struct
inode
*
inode
,
struct
file
*
filep
);
static
int
ida_release
(
struct
inode
*
inode
,
struct
file
*
filep
);
static
int
ida_ioctl
(
struct
inode
*
inode
,
struct
file
*
filep
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
int
ida_open
(
struct
block_device
*
bdev
,
fmode_t
mode
);
static
int
ida_release
(
struct
gendisk
*
disk
,
fmode_t
mode
);
static
int
ida_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mode
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
int
ida_getgeo
(
struct
block_device
*
bdev
,
struct
hd_geometry
*
geo
);
static
int
ida_ctlr_ioctl
(
ctlr_info_t
*
h
,
int
dsk
,
ida_ioctl_t
*
io
);
...
...
@@ -195,9 +195,9 @@ static inline ctlr_info_t *get_host(struct gendisk *disk)
static
struct
block_device_operations
ida_fops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
ida_open
,
.
__
release
=
ida_release
,
.
__ioctl
=
ida_ioctl
,
.
open
=
ida_open
,
.
release
=
ida_release
,
.
locked_ioctl
=
ida_ioctl
,
.
getgeo
=
ida_getgeo
,
.
revalidate_disk
=
ida_revalidate
,
};
...
...
@@ -818,12 +818,12 @@ DBGINFO(
/*
* Open. Make sure the device is really there.
*/
static
int
ida_open
(
struct
inode
*
inode
,
struct
file
*
filep
)
static
int
ida_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
drv_info_t
*
drv
=
get_drv
(
inode
->
i_
bdev
->
bd_disk
);
ctlr_info_t
*
host
=
get_host
(
inode
->
i_
bdev
->
bd_disk
);
drv_info_t
*
drv
=
get_drv
(
bdev
->
bd_disk
);
ctlr_info_t
*
host
=
get_host
(
bdev
->
bd_disk
);
DBGINFO
(
printk
(
"ida_open %s
\n
"
,
inode
->
i_
bdev
->
bd_disk
->
disk_name
));
DBGINFO
(
printk
(
"ida_open %s
\n
"
,
bdev
->
bd_disk
->
disk_name
));
/*
* Root is allowed to open raw volume zero even if it's not configured
* so array config can still work. I don't think I really like this,
...
...
@@ -843,9 +843,9 @@ static int ida_open(struct inode *inode, struct file *filep)
/*
* Close. Sync first.
*/
static
int
ida_release
(
struct
inode
*
inode
,
struct
file
*
filep
)
static
int
ida_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
ctlr_info_t
*
host
=
get_host
(
inode
->
i_bdev
->
bd_
disk
);
ctlr_info_t
*
host
=
get_host
(
disk
);
host
->
usage_count
--
;
return
0
;
}
...
...
@@ -1128,10 +1128,10 @@ static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo)
* ida_ioctl does some miscellaneous stuff like reporting drive geometry,
* setting readahead and submitting commands from userspace to the controller.
*/
static
int
ida_ioctl
(
struct
inode
*
inode
,
struct
file
*
filep
,
unsigned
int
cmd
,
unsigned
long
arg
)
static
int
ida_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mode
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
drv_info_t
*
drv
=
get_drv
(
inode
->
i_
bdev
->
bd_disk
);
ctlr_info_t
*
host
=
get_host
(
inode
->
i_
bdev
->
bd_disk
);
drv_info_t
*
drv
=
get_drv
(
bdev
->
bd_disk
);
ctlr_info_t
*
host
=
get_host
(
bdev
->
bd_disk
);
int
error
;
ida_ioctl_t
__user
*
io
=
(
ida_ioctl_t
__user
*
)
arg
;
ida_ioctl_t
*
my_io
;
...
...
@@ -1165,7 +1165,7 @@ out_passthru:
put_user
(
host
->
ctlr_sig
,
(
int
__user
*
)
arg
);
return
0
;
case
IDAREVALIDATEVOLS
:
if
(
iminor
(
inode
)
!=
0
)
if
(
MINOR
(
bdev
->
bd_dev
)
!=
0
)
return
-
ENXIO
;
return
revalidate_allvol
(
host
);
case
IDADRIVERVERSION
:
...
...
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