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
dc5d0e46
Commit
dc5d0e46
authored
Jul 04, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Jul 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] raid kdev_t cleanups - part 3
* ->dev killed for md/linear.c (same as previous parts)
parent
b60f0c2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
drivers/md/linear.c
drivers/md/linear.c
+3
-4
include/linux/raid/linear.h
include/linux/raid/linear.h
+0
-1
No files found.
drivers/md/linear.c
View file @
dc5d0e46
...
...
@@ -60,7 +60,6 @@ static int linear_run (mddev_t *mddev)
goto
out
;
}
disk
->
dev
=
rdev
->
dev
;
disk
->
bdev
=
rdev
->
bdev
;
atomic_inc
(
&
rdev
->
bdev
->
bd_count
);
disk
->
size
=
rdev
->
size
;
...
...
@@ -163,7 +162,7 @@ static int linear_make_request (request_queue_t *q, struct bio *bio)
if
(
block
>=
(
tmp_dev
->
size
+
tmp_dev
->
offset
)
||
block
<
tmp_dev
->
offset
)
{
printk
(
"linear_make_request: Block %ld out of bounds on dev %s size %ld offset %ld
\n
"
,
block
,
kdevname
(
tmp_dev
->
dev
),
tmp_dev
->
size
,
tmp_dev
->
offset
);
printk
(
"linear_make_request: Block %ld out of bounds on dev %s size %ld offset %ld
\n
"
,
block
,
bdevname
(
tmp_dev
->
b
dev
),
tmp_dev
->
size
,
tmp_dev
->
offset
);
bio_io_error
(
bio
);
return
0
;
}
...
...
@@ -186,11 +185,11 @@ static int linear_status (char *page, mddev_t *mddev)
for
(
j
=
0
;
j
<
conf
->
nr_zones
;
j
++
)
{
sz
+=
sprintf
(
page
+
sz
,
"[%s"
,
partition_name
(
conf
->
hash_table
[
j
].
dev0
->
dev
));
bdev_partition_name
(
conf
->
hash_table
[
j
].
dev0
->
b
dev
));
if
(
conf
->
hash_table
[
j
].
dev1
)
sz
+=
sprintf
(
page
+
sz
,
"/%s] "
,
partition_name
(
conf
->
hash_table
[
j
].
dev1
->
dev
));
bdev_partition_name
(
conf
->
hash_table
[
j
].
dev1
->
b
dev
));
else
sz
+=
sprintf
(
page
+
sz
,
"] "
);
}
...
...
include/linux/raid/linear.h
View file @
dc5d0e46
...
...
@@ -4,7 +4,6 @@
#include <linux/raid/md.h>
struct
dev_info
{
kdev_t
dev
;
struct
block_device
*
bdev
;
unsigned
long
size
;
unsigned
long
offset
;
...
...
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