Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
0f6d02d5
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0f6d02d5
编写于
10月 11, 2011
作者:
N
NeilBrown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
md: remove typedefs: mirror_info_t -> struct mirror_info
Signed-off-by:
N
NeilBrown
<
neilb@suse.de
>
上级
9f2c9d12
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
17 deletion
+13
-17
drivers/md/raid1.c
drivers/md/raid1.c
+5
-5
drivers/md/raid1.h
drivers/md/raid1.h
+1
-3
drivers/md/raid10.c
drivers/md/raid10.c
+6
-6
drivers/md/raid10.h
drivers/md/raid10.h
+1
-3
未找到文件。
drivers/md/raid1.c
浏览文件 @
0f6d02d5
...
...
@@ -799,7 +799,7 @@ static void alloc_behind_pages(struct bio *bio, struct r1bio *r1_bio)
static
int
make_request
(
struct
mddev
*
mddev
,
struct
bio
*
bio
)
{
conf_t
*
conf
=
mddev
->
private
;
mirror_info_t
*
mirror
;
struct
mirror_info
*
mirror
;
struct
r1bio
*
r1_bio
;
struct
bio
*
read_bio
;
int
i
,
disks
;
...
...
@@ -1268,7 +1268,7 @@ static int raid1_add_disk(struct mddev *mddev, struct md_rdev *rdev)
conf_t
*
conf
=
mddev
->
private
;
int
err
=
-
EEXIST
;
int
mirror
=
0
;
mirror_info_t
*
p
;
struct
mirror_info
*
p
;
int
first
=
0
;
int
last
=
mddev
->
raid_disks
-
1
;
...
...
@@ -1316,7 +1316,7 @@ static int raid1_remove_disk(struct mddev *mddev, int number)
conf_t
*
conf
=
mddev
->
private
;
int
err
=
0
;
struct
md_rdev
*
rdev
;
mirror_info_t
*
p
=
conf
->
mirrors
+
number
;
struct
mirror_info
*
p
=
conf
->
mirrors
+
number
;
print_conf
(
conf
);
rdev
=
p
->
rdev
;
...
...
@@ -2369,7 +2369,7 @@ static conf_t *setup_conf(struct mddev *mddev)
{
conf_t
*
conf
;
int
i
;
mirror_info_t
*
disk
;
struct
mirror_info
*
disk
;
struct
md_rdev
*
rdev
;
int
err
=
-
ENOMEM
;
...
...
@@ -2612,7 +2612,7 @@ static int raid1_reshape(struct mddev *mddev)
*/
mempool_t
*
newpool
,
*
oldpool
;
struct
pool_info
*
newpoolinfo
;
mirror_info_t
*
newmirrors
;
struct
mirror_info
*
newmirrors
;
conf_t
*
conf
=
mddev
->
private
;
int
cnt
,
raid_disks
;
unsigned
long
flags
;
...
...
drivers/md/raid1.h
浏览文件 @
0f6d02d5
#ifndef _RAID1_H
#define _RAID1_H
typedef
struct
mirror_info
mirror_info_t
;
struct
mirror_info
{
struct
md_rdev
*
rdev
;
sector_t
head_position
;
...
...
@@ -23,7 +21,7 @@ struct pool_info {
struct
r1_private_data_s
{
struct
mddev
*
mddev
;
mirror_info_t
*
mirrors
;
struct
mirror_info
*
mirrors
;
int
raid_disks
;
/* When choose the best device for a read (read_balance())
...
...
drivers/md/raid10.c
浏览文件 @
0f6d02d5
...
...
@@ -833,7 +833,7 @@ static void unfreeze_array(conf_t *conf)
static
int
make_request
(
struct
mddev
*
mddev
,
struct
bio
*
bio
)
{
conf_t
*
conf
=
mddev
->
private
;
mirror_info_t
*
mirror
;
struct
mirror_info
*
mirror
;
struct
r10bio
*
r10_bio
;
struct
bio
*
read_bio
;
int
i
;
...
...
@@ -1249,7 +1249,7 @@ static void error(struct mddev *mddev, struct md_rdev *rdev)
static
void
print_conf
(
conf_t
*
conf
)
{
int
i
;
mirror_info_t
*
tmp
;
struct
mirror_info
*
tmp
;
printk
(
KERN_DEBUG
"RAID10 conf printout:
\n
"
);
if
(
!
conf
)
{
...
...
@@ -1283,7 +1283,7 @@ static int raid10_spare_active(struct mddev *mddev)
{
int
i
;
conf_t
*
conf
=
mddev
->
private
;
mirror_info_t
*
tmp
;
struct
mirror_info
*
tmp
;
int
count
=
0
;
unsigned
long
flags
;
...
...
@@ -1334,7 +1334,7 @@ static int raid10_add_disk(struct mddev *mddev, struct md_rdev *rdev)
else
mirror
=
first
;
for
(
;
mirror
<=
last
;
mirror
++
)
{
mirror_info_t
*
p
=
&
conf
->
mirrors
[
mirror
];
struct
mirror_info
*
p
=
&
conf
->
mirrors
[
mirror
];
if
(
p
->
recovery_disabled
==
mddev
->
recovery_disabled
)
continue
;
if
(
!
p
->
rdev
)
...
...
@@ -1373,7 +1373,7 @@ static int raid10_remove_disk(struct mddev *mddev, int number)
conf_t
*
conf
=
mddev
->
private
;
int
err
=
0
;
struct
md_rdev
*
rdev
;
mirror_info_t
*
p
=
conf
->
mirrors
+
number
;
struct
mirror_info
*
p
=
conf
->
mirrors
+
number
;
print_conf
(
conf
);
rdev
=
p
->
rdev
;
...
...
@@ -2840,7 +2840,7 @@ static int run(struct mddev *mddev)
{
conf_t
*
conf
;
int
i
,
disk_idx
,
chunk_size
;
mirror_info_t
*
disk
;
struct
mirror_info
*
disk
;
struct
md_rdev
*
rdev
;
sector_t
size
;
...
...
drivers/md/raid10.h
浏览文件 @
0f6d02d5
#ifndef _RAID10_H
#define _RAID10_H
typedef
struct
mirror_info
mirror_info_t
;
struct
mirror_info
{
struct
md_rdev
*
rdev
;
sector_t
head_position
;
...
...
@@ -15,7 +13,7 @@ struct mirror_info {
struct
r10_private_data_s
{
struct
mddev
*
mddev
;
mirror_info_t
*
mirrors
;
struct
mirror_info
*
mirrors
;
int
raid_disks
;
spinlock_t
device_lock
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录