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
46d74326
Commit
46d74326
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch dcssblk
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
57a7c0bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
drivers/s390/block/dcssblk.c
drivers/s390/block/dcssblk.c
+10
-11
No files found.
drivers/s390/block/dcssblk.c
View file @
46d74326
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
#define PRINT_WARN(x...) printk(KERN_WARNING DCSSBLK_NAME " warning: " x)
#define PRINT_WARN(x...) printk(KERN_WARNING DCSSBLK_NAME " warning: " x)
#define PRINT_ERR(x...) printk(KERN_ERR DCSSBLK_NAME " error: " x)
#define PRINT_ERR(x...) printk(KERN_ERR DCSSBLK_NAME " error: " x)
static
int
dcssblk_open
(
struct
inode
*
inode
,
struct
file
*
filp
);
static
int
dcssblk_open
(
struct
block_device
*
bdev
,
fmode_t
mode
);
static
int
dcssblk_release
(
struct
inode
*
inode
,
struct
file
*
filp
);
static
int
dcssblk_release
(
struct
gendisk
*
disk
,
fmode_t
mode
);
static
int
dcssblk_make_request
(
struct
request_queue
*
q
,
struct
bio
*
bio
);
static
int
dcssblk_make_request
(
struct
request_queue
*
q
,
struct
bio
*
bio
);
static
int
dcssblk_direct_access
(
struct
block_device
*
bdev
,
sector_t
secnum
,
static
int
dcssblk_direct_access
(
struct
block_device
*
bdev
,
sector_t
secnum
,
void
**
kaddr
,
unsigned
long
*
pfn
);
void
**
kaddr
,
unsigned
long
*
pfn
);
...
@@ -42,8 +42,8 @@ static char dcssblk_segments[DCSSBLK_PARM_LEN] = "\0";
...
@@ -42,8 +42,8 @@ static char dcssblk_segments[DCSSBLK_PARM_LEN] = "\0";
static
int
dcssblk_major
;
static
int
dcssblk_major
;
static
struct
block_device_operations
dcssblk_devops
=
{
static
struct
block_device_operations
dcssblk_devops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
__
open
=
dcssblk_open
,
.
open
=
dcssblk_open
,
.
__
release
=
dcssblk_release
,
.
release
=
dcssblk_release
,
.
direct_access
=
dcssblk_direct_access
,
.
direct_access
=
dcssblk_direct_access
,
};
};
...
@@ -776,32 +776,31 @@ out_buf:
...
@@ -776,32 +776,31 @@ out_buf:
}
}
static
int
static
int
dcssblk_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
dcssblk_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
{
struct
dcssblk_dev_info
*
dev_info
;
struct
dcssblk_dev_info
*
dev_info
;
int
rc
;
int
rc
;
dev_info
=
inode
->
i_
bdev
->
bd_disk
->
private_data
;
dev_info
=
bdev
->
bd_disk
->
private_data
;
if
(
NULL
==
dev_info
)
{
if
(
NULL
==
dev_info
)
{
rc
=
-
ENODEV
;
rc
=
-
ENODEV
;
goto
out
;
goto
out
;
}
}
atomic_inc
(
&
dev_info
->
use_count
);
atomic_inc
(
&
dev_info
->
use_count
);
inode
->
i_
bdev
->
bd_block_size
=
4096
;
bdev
->
bd_block_size
=
4096
;
rc
=
0
;
rc
=
0
;
out:
out:
return
rc
;
return
rc
;
}
}
static
int
static
int
dcssblk_release
(
struct
inode
*
inode
,
struct
file
*
filp
)
dcssblk_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
{
struct
dcssblk_dev_info
*
dev_info
;
struct
dcssblk_dev_info
*
dev_info
=
disk
->
private_data
;
struct
segment_info
*
entry
;
struct
segment_info
*
entry
;
int
rc
;
int
rc
;
dev_info
=
inode
->
i_bdev
->
bd_disk
->
private_data
;
if
(
!
dev_info
)
{
if
(
NULL
==
dev_info
)
{
rc
=
-
ENODEV
;
rc
=
-
ENODEV
;
goto
out
;
goto
out
;
}
}
...
...
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