Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
ecaeb14b
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,发现更多精彩内容 >>
提交
ecaeb14b
编写于
10月 08, 2015
作者:
D
David Sterba
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
btrfs: switch message printers to _in_rcu variants
Signed-off-by:
N
David Sterba
<
dsterba@suse.com
>
上级
08a84e25
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
27 addition
and
27 deletion
+27
-27
fs/btrfs/check-integrity.c
fs/btrfs/check-integrity.c
+2
-2
fs/btrfs/dev-replace.c
fs/btrfs/dev-replace.c
+8
-8
fs/btrfs/ioctl.c
fs/btrfs/ioctl.c
+1
-1
fs/btrfs/scrub.c
fs/btrfs/scrub.c
+7
-7
fs/btrfs/volumes.c
fs/btrfs/volumes.c
+9
-9
未找到文件。
fs/btrfs/check-integrity.c
浏览文件 @
ecaeb14b
...
...
@@ -845,8 +845,8 @@ static int btrfsic_process_superblock_dev_mirror(
superblock_tmp
->
never_written
=
0
;
superblock_tmp
->
mirror_num
=
1
+
superblock_mirror_num
;
if
(
state
->
print_mask
&
BTRFSIC_PRINT_MASK_SUPERBLOCK_WRITE
)
printk_in_rcu
(
KERN_INFO
"New initial S-block (bdev %p, %s)"
" @%llu (%s/%llu/%d)
\n
"
,
btrfs_info_in_rcu
(
device
->
dev_root
->
fs_info
,
"new initial S-block (bdev %p, %s) @%llu (%s/%llu/%d)
"
,
superblock_bdev
,
rcu_str_deref
(
device
->
name
),
dev_bytenr
,
dev_state
->
name
,
dev_bytenr
,
...
...
fs/btrfs/dev-replace.c
浏览文件 @
ecaeb14b
...
...
@@ -379,8 +379,8 @@ int btrfs_dev_replace_start(struct btrfs_root *root,
if
(
ret
)
btrfs_err
(
root
->
fs_info
,
"kobj add dev failed %d
\n
"
,
ret
);
printk_in_rcu
(
KERN_INFO
"
BTRFS: dev_replace from %s (devid %llu) to %s started
\n
"
,
btrfs_info_in_rcu
(
root
->
fs_info
,
"
dev_replace from %s (devid %llu) to %s started
"
,
src_device
->
missing
?
"<missing disk>"
:
rcu_str_deref
(
src_device
->
name
),
src_device
->
devid
,
...
...
@@ -523,8 +523,8 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
src_device
,
tgt_device
);
}
else
{
printk_in_rcu
(
KERN_ERR
"
BTRFS: btrfs_scrub_dev(%s, %llu, %s) failed %d
\n
"
,
btrfs_err_in_rcu
(
root
->
fs_info
,
"
btrfs_scrub_dev(%s, %llu, %s) failed %d
"
,
src_device
->
missing
?
"<missing disk>"
:
rcu_str_deref
(
src_device
->
name
),
src_device
->
devid
,
...
...
@@ -540,8 +540,8 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
return
scrub_ret
;
}
printk_in_rcu
(
KERN_INFO
"
BTRFS: dev_replace from %s (devid %llu) to %s finished
\n
"
,
btrfs_info_in_rcu
(
root
->
fs_info
,
"
dev_replace from %s (devid %llu) to %s finished
"
,
src_device
->
missing
?
"<missing disk>"
:
rcu_str_deref
(
src_device
->
name
),
src_device
->
devid
,
...
...
@@ -809,8 +809,8 @@ static int btrfs_dev_replace_kthread(void *data)
progress
=
status_args
->
status
.
progress_1000
;
kfree
(
status_args
);
progress
=
div_u64
(
progress
,
10
);
printk_in_rcu
(
KERN_INFO
"
BTRFS: continuing dev_replace from %s (devid %llu) to %s @%u%%
\n
"
,
btrfs_info_in_rcu
(
fs_info
,
"
continuing dev_replace from %s (devid %llu) to %s @%u%%
"
,
dev_replace
->
srcdev
->
missing
?
"<missing disk>"
:
rcu_str_deref
(
dev_replace
->
srcdev
->
name
),
dev_replace
->
srcdev
->
devid
,
...
...
fs/btrfs/ioctl.c
浏览文件 @
ecaeb14b
...
...
@@ -1579,7 +1579,7 @@ static noinline int btrfs_ioctl_resize(struct file *file,
new_size
=
div_u64
(
new_size
,
root
->
sectorsize
);
new_size
*=
root
->
sectorsize
;
printk_in_rcu
(
KERN_INFO
"BTRFS: new size for %s is %llu
\n
"
,
btrfs_info_in_rcu
(
root
->
fs_info
,
"new size for %s is %llu
"
,
rcu_str_deref
(
device
->
name
),
new_size
);
if
(
new_size
>
old_size
)
{
...
...
fs/btrfs/scrub.c
浏览文件 @
ecaeb14b
...
...
@@ -580,9 +580,9 @@ static int scrub_print_warning_inode(u64 inum, u64 offset, u64 root,
* hold all of the paths here
*/
for
(
i
=
0
;
i
<
ipath
->
fspath
->
elem_cnt
;
++
i
)
printk_in_rcu
(
KERN_WARNING
"BTRFS:
%s at logical %llu on dev "
btrfs_warn_in_rcu
(
fs_info
,
"
%s at logical %llu on dev "
"%s, sector %llu, root %llu, inode %llu, offset %llu, "
"length %llu, links %u (path: %s)
\n
"
,
swarn
->
errstr
,
"length %llu, links %u (path: %s)"
,
swarn
->
errstr
,
swarn
->
logical
,
rcu_str_deref
(
swarn
->
dev
->
name
),
(
unsigned
long
long
)
swarn
->
sector
,
root
,
inum
,
offset
,
min
(
isize
-
offset
,
(
u64
)
PAGE_SIZE
),
nlink
,
...
...
@@ -592,9 +592,9 @@ static int scrub_print_warning_inode(u64 inum, u64 offset, u64 root,
return
0
;
err:
printk_in_rcu
(
KERN_WARNING
"BTRFS:
%s at logical %llu on dev "
btrfs_warn_in_rcu
(
fs_info
,
"
%s at logical %llu on dev "
"%s, sector %llu, root %llu, inode %llu, offset %llu: path "
"resolving failed with ret=%d
\n
"
,
swarn
->
errstr
,
"resolving failed with ret=%d"
,
swarn
->
errstr
,
swarn
->
logical
,
rcu_str_deref
(
swarn
->
dev
->
name
),
(
unsigned
long
long
)
swarn
->
sector
,
root
,
inum
,
offset
,
ret
);
...
...
@@ -649,10 +649,10 @@ static void scrub_print_warning(const char *errstr, struct scrub_block *sblock)
ret
=
tree_backref_for_extent
(
&
ptr
,
eb
,
&
found_key
,
ei
,
item_size
,
&
ref_root
,
&
ref_level
);
printk_in_rcu
(
KERN_WARNING
"
BTRFS:
%s at logical %llu on dev %s, "
btrfs_warn_in_rcu
(
fs_info
,
"%s at logical %llu on dev %s, "
"sector %llu: metadata %s (level %d) in tree "
"%llu
\n
"
,
errstr
,
swarn
.
logical
,
"%llu"
,
errstr
,
swarn
.
logical
,
rcu_str_deref
(
dev
->
name
),
(
unsigned
long
long
)
swarn
.
sector
,
ref_level
?
"node"
:
"leaf"
,
...
...
fs/btrfs/volumes.c
浏览文件 @
ecaeb14b
...
...
@@ -6594,8 +6594,8 @@ static int update_dev_stat_item(struct btrfs_trans_handle *trans,
BUG_ON
(
!
path
);
ret
=
btrfs_search_slot
(
trans
,
dev_root
,
&
key
,
path
,
-
1
,
1
);
if
(
ret
<
0
)
{
printk_in_rcu
(
KERN_WARNING
"BTRFS: "
"error %d while searching for dev_stats item for device %s
!
\n
"
,
btrfs_warn_in_rcu
(
dev_root
->
fs_info
,
"error %d while searching for dev_stats item for device %s"
,
ret
,
rcu_str_deref
(
device
->
name
));
goto
out
;
}
...
...
@@ -6605,8 +6605,8 @@ static int update_dev_stat_item(struct btrfs_trans_handle *trans,
/* need to delete old one and insert a new one */
ret
=
btrfs_del_item
(
trans
,
dev_root
,
path
);
if
(
ret
!=
0
)
{
printk_in_rcu
(
KERN_WARNING
"BTRFS: "
"delete too small dev_stats item for device %s failed %d
!
\n
"
,
btrfs_warn_in_rcu
(
dev_root
->
fs_info
,
"delete too small dev_stats item for device %s failed %d"
,
rcu_str_deref
(
device
->
name
),
ret
);
goto
out
;
}
...
...
@@ -6619,9 +6619,9 @@ static int update_dev_stat_item(struct btrfs_trans_handle *trans,
ret
=
btrfs_insert_empty_item
(
trans
,
dev_root
,
path
,
&
key
,
sizeof
(
*
ptr
));
if
(
ret
<
0
)
{
printk_in_rcu
(
KERN_WARNING
"BTRFS: "
"insert dev_stats item for device %s failed %d!
\n
"
,
rcu_str_deref
(
device
->
name
),
ret
);
btrfs_warn_in_rcu
(
dev_root
->
fs_info
,
"insert dev_stats item for device %s failed %d
"
,
rcu_str_deref
(
device
->
name
),
ret
);
goto
out
;
}
}
...
...
@@ -6695,8 +6695,8 @@ static void btrfs_dev_stat_print_on_load(struct btrfs_device *dev)
if
(
i
==
BTRFS_DEV_STAT_VALUES_MAX
)
return
;
/* all values == 0, suppress message */
printk_in_rcu
(
KERN_INFO
"BTRFS: "
"bdev %s errs: wr %u, rd %u, flush %u, corrupt %u, gen %u
\n
"
,
btrfs_info_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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录