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
7fa418f7
Commit
7fa418f7
authored
Jun 18, 2002
by
Neil Brown
Committed by
Linus Torvalds
Jun 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] md 3 of 22 - Remove md_maxreadahead
..as it is nolonger used.
parent
a0edc56a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
drivers/md/md.c
drivers/md/md.c
+0
-3
No files found.
drivers/md/md.c
View file @
7fa418f7
...
@@ -106,7 +106,6 @@ static ctl_table raid_root_table[] = {
...
@@ -106,7 +106,6 @@ static ctl_table raid_root_table[] = {
* subsystems want to have a pre-defined structure
* subsystems want to have a pre-defined structure
*/
*/
struct
hd_struct
md_hd_struct
[
MAX_MD_DEVS
];
struct
hd_struct
md_hd_struct
[
MAX_MD_DEVS
];
static
int
md_maxreadahead
[
MAX_MD_DEVS
];
static
mdk_thread_t
*
md_recovery_thread
;
static
mdk_thread_t
*
md_recovery_thread
;
int
md_size
[
MAX_MD_DEVS
];
int
md_size
[
MAX_MD_DEVS
];
...
@@ -1579,7 +1578,6 @@ static int device_size_calculation(mddev_t * mddev)
...
@@ -1579,7 +1578,6 @@ static int device_size_calculation(mddev_t * mddev)
if
(
sb
->
level
==
-
3
)
if
(
sb
->
level
==
-
3
)
readahead
=
0
;
readahead
=
0
;
}
}
md_maxreadahead
[
mdidx
(
mddev
)]
=
readahead
;
printk
(
KERN_INFO
"md%d: max total readahead window set to %ldk
\n
"
,
printk
(
KERN_INFO
"md%d: max total readahead window set to %ldk
\n
"
,
mdidx
(
mddev
),
readahead
*
(
PAGE_SIZE
/
1024
));
mdidx
(
mddev
),
readahead
*
(
PAGE_SIZE
/
1024
));
...
@@ -3614,7 +3612,6 @@ static void md_geninit(void)
...
@@ -3614,7 +3612,6 @@ static void md_geninit(void)
for
(
i
=
0
;
i
<
MAX_MD_DEVS
;
i
++
)
{
for
(
i
=
0
;
i
<
MAX_MD_DEVS
;
i
++
)
{
md_size
[
i
]
=
0
;
md_size
[
i
]
=
0
;
md_maxreadahead
[
i
]
=
32
;
}
}
blk_size
[
MAJOR_NR
]
=
md_size
;
blk_size
[
MAJOR_NR
]
=
md_size
;
...
...
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