Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b14af3b4
cloud-kernel
项目概览
openanolis
/
cloud-kernel
12 个月 前同步成功
通知
152
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b14af3b4
编写于
10月 08, 2015
作者:
D
David Sterba
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
btrfs: switch message printers to ratelimited _in_rcu variants
Signed-off-by:
N
David Sterba
<
dsterba@suse.com
>
上级
24aa6b41
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
16 deletion
+16
-16
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+2
-2
fs/btrfs/extent_io.c
fs/btrfs/extent_io.c
+2
-2
fs/btrfs/scrub.c
fs/btrfs/scrub.c
+10
-10
fs/btrfs/volumes.c
fs/btrfs/volumes.c
+2
-2
未找到文件。
fs/btrfs/disk-io.c
浏览文件 @
b14af3b4
...
...
@@ -3175,8 +3175,8 @@ static void btrfs_end_buffer_write_sync(struct buffer_head *bh, int uptodate)
struct
btrfs_device
*
device
=
(
struct
btrfs_device
*
)
bh
->
b_private
;
printk_ratelimited_in_rcu
(
KERN_WARNING
"BTRFS: lost page write due to "
"I/O error on %s
\n
"
,
btrfs_warn_rl_in_rcu
(
device
->
dev_root
->
fs_info
,
"lost page write due to IO error on %s
"
,
rcu_str_deref
(
device
->
name
));
/* note, we dont' set_buffer_write_io_error because we have
* our own ways of dealing with the IO errors
...
...
fs/btrfs/extent_io.c
浏览文件 @
b14af3b4
...
...
@@ -2078,8 +2078,8 @@ int repair_io_failure(struct inode *inode, u64 start, u64 length, u64 logical,
return
-
EIO
;
}
printk_ratelimited_in_rcu
(
KERN_INFO
"BTRFS: read error corrected: ino %llu off %llu (dev %s sector %llu)
\n
"
,
btrfs_info_rl_in_rcu
(
fs_info
,
"read error corrected: ino %llu off %llu (dev %s sector %llu)
"
,
btrfs_ino
(
inode
),
start
,
rcu_str_deref
(
dev
->
name
),
sector
);
bio_put
(
bio
);
...
...
fs/btrfs/scrub.c
浏览文件 @
b14af3b4
...
...
@@ -850,8 +850,8 @@ static void scrub_fixup_nodatasum(struct btrfs_work *work)
btrfs_dev_replace_stats_inc
(
&
sctx
->
dev_root
->
fs_info
->
dev_replace
.
num_uncorrectable_read_errors
);
printk_ratelimited_in_rcu
(
KERN_ERR
"BTRFS: "
"unable to fixup (nodatasum) error at logical %llu on dev %s
\n
"
,
btrfs_err_rl_in_rcu
(
sctx
->
dev_root
->
fs_info
,
"unable to fixup (nodatasum) error at logical %llu on dev %s"
,
fixup
->
logical
,
rcu_str_deref
(
fixup
->
dev
->
name
));
}
...
...
@@ -1230,8 +1230,8 @@ static int scrub_handle_errored_block(struct scrub_block *sblock_to_check)
sctx
->
stat
.
corrected_errors
++
;
sblock_to_check
->
data_corrected
=
1
;
spin_unlock
(
&
sctx
->
stat_lock
);
printk_ratelimited_in_rcu
(
KERN_ERR
"
BTRFS: fixed up error at logical %llu on dev %s
\n
"
,
btrfs_err_rl_in_rcu
(
fs_info
,
"
fixed up error at logical %llu on dev %s
"
,
logical
,
rcu_str_deref
(
dev
->
name
));
}
}
else
{
...
...
@@ -1239,8 +1239,8 @@ static int scrub_handle_errored_block(struct scrub_block *sblock_to_check)
spin_lock
(
&
sctx
->
stat_lock
);
sctx
->
stat
.
uncorrectable_errors
++
;
spin_unlock
(
&
sctx
->
stat_lock
);
printk_ratelimited_in_rcu
(
KERN_ERR
"
BTRFS: unable to fixup (regular) error at logical %llu on dev %s
\n
"
,
btrfs_err_rl_in_rcu
(
fs_info
,
"
unable to fixup (regular) error at logical %llu on dev %s
"
,
logical
,
rcu_str_deref
(
dev
->
name
));
}
...
...
@@ -2201,15 +2201,15 @@ static void scrub_missing_raid56_worker(struct btrfs_work *work)
spin_lock
(
&
sctx
->
stat_lock
);
sctx
->
stat
.
read_errors
++
;
spin_unlock
(
&
sctx
->
stat_lock
);
printk_ratelimited_in_rcu
(
KERN_ERR
"
BTRFS: I/O error rebulding logical %llu for dev %s
\n
"
,
btrfs_err_rl_in_rcu
(
fs_info
,
"
IO error rebuilding logical %llu for dev %s
"
,
logical
,
rcu_str_deref
(
dev
->
name
));
}
else
if
(
sblock
->
header_error
||
sblock
->
checksum_error
)
{
spin_lock
(
&
sctx
->
stat_lock
);
sctx
->
stat
.
uncorrectable_errors
++
;
spin_unlock
(
&
sctx
->
stat_lock
);
printk_ratelimited_in_rcu
(
KERN_ERR
"
BTRFS: failed to rebuild valid logical %llu for dev %s
\n
"
,
btrfs_err_rl_in_rcu
(
fs_info
,
"
failed to rebuild valid logical %llu for dev %s
"
,
logical
,
rcu_str_deref
(
dev
->
name
));
}
else
{
scrub_write_block_to_dev_replace
(
sblock
);
...
...
fs/btrfs/volumes.c
浏览文件 @
b14af3b4
...
...
@@ -6675,8 +6675,8 @@ static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev)
{
if
(
!
dev
->
dev_stats_valid
)
return
;
printk_ratelimited_in_rcu
(
KERN_ERR
"BTRFS: "
"bdev %s errs: wr %u, rd %u, flush %u, corrupt %u, gen %u
\n
"
,
btrfs_err_rl_in_rcu
(
dev
->
dev_root
->
fs_info
,
"bdev %s errs: wr %u, rd %u, flush %u, corrupt %u, gen %u
"
,
rcu_str_deref
(
dev
->
name
),
btrfs_dev_stat_read
(
dev
,
BTRFS_DEV_STAT_WRITE_ERRS
),
btrfs_dev_stat_read
(
dev
,
BTRFS_DEV_STAT_READ_ERRS
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录