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
Kirill Smelkov
linux
Commits
7290bad4
Commit
7290bad4
authored
Apr 24, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Apr 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] (4/15) big struct block_device * push (first series)
- switch block_ioctl() to struct block_device *
parent
13b52b0b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
drivers/block/blkpg.c
drivers/block/blkpg.c
+1
-2
drivers/block/block_ioctl.c
drivers/block/block_ioctl.c
+2
-2
drivers/ide/ide.c
drivers/ide/ide.c
+1
-1
include/linux/blkdev.h
include/linux/blkdev.h
+1
-1
No files found.
drivers/block/blkpg.c
View file @
7290bad4
...
...
@@ -211,7 +211,6 @@ int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg *arg)
/*
* Common ioctl's for block devices
*/
extern
int
block_ioctl
(
kdev_t
dev
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
blk_ioctl
(
struct
block_device
*
bdev
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
request_queue_t
*
q
;
...
...
@@ -221,7 +220,7 @@ int blk_ioctl(struct block_device *bdev, unsigned int cmd, unsigned long arg)
kdev_t
dev
=
to_kdev_t
(
bdev
->
bd_dev
);
int
holder
;
intval
=
block_ioctl
(
dev
,
cmd
,
arg
);
intval
=
block_ioctl
(
b
dev
,
cmd
,
arg
);
if
(
intval
!=
-
ENOTTY
)
return
intval
;
...
...
drivers/block/block_ioctl.c
View file @
7290bad4
...
...
@@ -51,13 +51,13 @@ int blk_do_rq(request_queue_t *q, struct request *rq)
return
err
;
}
int
block_ioctl
(
kdev_t
dev
,
unsigned
int
cmd
,
unsigned
long
arg
)
int
block_ioctl
(
struct
block_device
*
b
dev
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
request_queue_t
*
q
;
struct
request
*
rq
;
int
close
=
0
,
err
;
q
=
blk_get_queue
(
dev
);
q
=
blk_get_queue
(
to_kdev_t
(
bdev
->
bd_dev
)
);
if
(
!
q
)
return
-
ENXIO
;
...
...
drivers/ide/ide.c
View file @
7290bad4
...
...
@@ -2572,7 +2572,7 @@ static int ide_ioctl (struct inode *inode, struct file *file,
*/
case
CDROMEJECT
:
case
CDROMCLOSETRAY
:
return
block_ioctl
(
inode
->
i_
r
dev
,
cmd
,
arg
);
return
block_ioctl
(
inode
->
i_
b
dev
,
cmd
,
arg
);
case
HDIO_GET_BUSSTATE
:
if
(
!
capable
(
CAP_SYS_ADMIN
))
...
...
include/linux/blkdev.h
View file @
7290bad4
...
...
@@ -291,7 +291,7 @@ extern void blk_plug_device(request_queue_t *);
extern
void
blk_recount_segments
(
request_queue_t
*
,
struct
bio
*
);
extern
inline
int
blk_phys_contig_segment
(
request_queue_t
*
q
,
struct
bio
*
,
struct
bio
*
);
extern
inline
int
blk_hw_contig_segment
(
request_queue_t
*
q
,
struct
bio
*
,
struct
bio
*
);
extern
int
block_ioctl
(
kdev_t
,
unsigned
int
,
unsigned
long
);
extern
int
block_ioctl
(
struct
block_device
*
,
unsigned
int
,
unsigned
long
);
extern
int
ll_10byte_cmd_build
(
request_queue_t
*
,
struct
request
*
);
/*
...
...
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