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
2b9ecd03
Commit
2b9ecd03
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch brd
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
60ad2340
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/block/brd.c
drivers/block/brd.c
+2
-3
No files found.
drivers/block/brd.c
View file @
2b9ecd03
...
...
@@ -340,11 +340,10 @@ static int brd_direct_access (struct block_device *bdev, sector_t sector,
}
#endif
static
int
brd_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
static
int
brd_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
int
error
;
struct
block_device
*
bdev
=
inode
->
i_bdev
;
struct
brd_device
*
brd
=
bdev
->
bd_disk
->
private_data
;
if
(
cmd
!=
BLKFLSBUF
)
...
...
@@ -376,7 +375,7 @@ static int brd_ioctl(struct inode *inode, struct file *file,
static
struct
block_device_operations
brd_fops
=
{
.
owner
=
THIS_MODULE
,
.
_
_ioctl
=
brd_ioctl
,
.
locked
_ioctl
=
brd_ioctl
,
#ifdef CONFIG_BLK_DEV_XIP
.
direct_access
=
brd_direct_access
,
#endif
...
...
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