Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
de29c085
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
de29c085
编写于
10月 29, 2008
作者:
M
Mark Fasheh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ocfs2: fix printk related build warnings in xattr.c
Signed-off-by:
N
Mark Fasheh
<
mfasheh@suse.com
>
上级
c4354001
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
14 deletion
+20
-14
fs/ocfs2/xattr.c
fs/ocfs2/xattr.c
+20
-14
未找到文件。
fs/ocfs2/xattr.c
浏览文件 @
de29c085
...
@@ -2336,7 +2336,8 @@ static int ocfs2_xattr_index_block_find(struct inode *inode,
...
@@ -2336,7 +2336,8 @@ static int ocfs2_xattr_index_block_find(struct inode *inode,
BUG_ON
(
p_blkno
==
0
||
num_clusters
==
0
||
first_hash
>
name_hash
);
BUG_ON
(
p_blkno
==
0
||
num_clusters
==
0
||
first_hash
>
name_hash
);
mlog
(
0
,
"find xattr extent rec %u clusters from %llu, the first hash "
mlog
(
0
,
"find xattr extent rec %u clusters from %llu, the first hash "
"in the rec is %u
\n
"
,
num_clusters
,
p_blkno
,
first_hash
);
"in the rec is %u
\n
"
,
num_clusters
,
(
unsigned
long
long
)
p_blkno
,
first_hash
);
ret
=
ocfs2_xattr_bucket_find
(
inode
,
name_index
,
name
,
name_hash
,
ret
=
ocfs2_xattr_bucket_find
(
inode
,
name_index
,
name
,
name_hash
,
p_blkno
,
first_hash
,
num_clusters
,
xs
);
p_blkno
,
first_hash
,
num_clusters
,
xs
);
...
@@ -2360,7 +2361,7 @@ static int ocfs2_iterate_xattr_buckets(struct inode *inode,
...
@@ -2360,7 +2361,7 @@ static int ocfs2_iterate_xattr_buckets(struct inode *inode,
memset
(
&
bucket
,
0
,
sizeof
(
bucket
));
memset
(
&
bucket
,
0
,
sizeof
(
bucket
));
mlog
(
0
,
"iterating xattr buckets in %u clusters starting from %llu
\n
"
,
mlog
(
0
,
"iterating xattr buckets in %u clusters starting from %llu
\n
"
,
clusters
,
blkno
);
clusters
,
(
unsigned
long
long
)
blkno
);
for
(
i
=
0
;
i
<
num_buckets
;
i
++
,
blkno
+=
blk_per_bucket
)
{
for
(
i
=
0
;
i
<
num_buckets
;
i
++
,
blkno
+=
blk_per_bucket
)
{
ret
=
ocfs2_read_blocks
(
inode
,
blkno
,
blk_per_bucket
,
ret
=
ocfs2_read_blocks
(
inode
,
blkno
,
blk_per_bucket
,
...
@@ -2378,7 +2379,8 @@ static int ocfs2_iterate_xattr_buckets(struct inode *inode,
...
@@ -2378,7 +2379,8 @@ static int ocfs2_iterate_xattr_buckets(struct inode *inode,
if
(
i
==
0
)
if
(
i
==
0
)
num_buckets
=
le16_to_cpu
(
bucket
.
xh
->
xh_num_buckets
);
num_buckets
=
le16_to_cpu
(
bucket
.
xh
->
xh_num_buckets
);
mlog
(
0
,
"iterating xattr bucket %llu, first hash %u
\n
"
,
blkno
,
mlog
(
0
,
"iterating xattr bucket %llu, first hash %u
\n
"
,
(
unsigned
long
long
)
blkno
,
le32_to_cpu
(
bucket
.
xh
->
xh_entries
[
0
].
xe_name_hash
));
le32_to_cpu
(
bucket
.
xh
->
xh_entries
[
0
].
xe_name_hash
));
if
(
func
)
{
if
(
func
)
{
ret
=
func
(
inode
,
&
bucket
,
para
);
ret
=
func
(
inode
,
&
bucket
,
para
);
...
@@ -2714,7 +2716,8 @@ static int ocfs2_xattr_create_index_block(struct inode *inode,
...
@@ -2714,7 +2716,8 @@ static int ocfs2_xattr_create_index_block(struct inode *inode,
*/
*/
blkno
=
ocfs2_clusters_to_blocks
(
inode
->
i_sb
,
bit_off
);
blkno
=
ocfs2_clusters_to_blocks
(
inode
->
i_sb
,
bit_off
);
mlog
(
0
,
"allocate 1 cluster from %llu to xattr block
\n
"
,
blkno
);
mlog
(
0
,
"allocate 1 cluster from %llu to xattr block
\n
"
,
(
unsigned
long
long
)
blkno
);
xh_bh
=
sb_getblk
(
inode
->
i_sb
,
blkno
);
xh_bh
=
sb_getblk
(
inode
->
i_sb
,
blkno
);
if
(
!
xh_bh
)
{
if
(
!
xh_bh
)
{
...
@@ -2883,8 +2886,8 @@ static int ocfs2_defrag_xattr_bucket(struct inode *inode,
...
@@ -2883,8 +2886,8 @@ static int ocfs2_defrag_xattr_bucket(struct inode *inode,
mlog
(
0
,
"adjust xattr bucket in %llu, count = %u, "
mlog
(
0
,
"adjust xattr bucket in %llu, count = %u, "
"xh_free_start = %u, xh_name_value_len = %u.
\n
"
,
"xh_free_start = %u, xh_name_value_len = %u.
\n
"
,
blkno
,
le16_to_cpu
(
xh
->
xh_count
),
xh_free_start
,
(
unsigned
long
long
)
blkno
,
le16_to_cpu
(
xh
->
xh_count
)
,
le16_to_cpu
(
xh
->
xh_name_value_len
));
xh_free_start
,
le16_to_cpu
(
xh
->
xh_name_value_len
));
/*
/*
* sort all the entries by their offset.
* sort all the entries by their offset.
...
@@ -3000,7 +3003,7 @@ static int ocfs2_mv_xattr_bucket_cross_cluster(struct inode *inode,
...
@@ -3000,7 +3003,7 @@ static int ocfs2_mv_xattr_bucket_cross_cluster(struct inode *inode,
prev_blkno
+=
(
num_clusters
-
1
)
*
bpc
+
bpc
/
2
;
prev_blkno
+=
(
num_clusters
-
1
)
*
bpc
+
bpc
/
2
;
mlog
(
0
,
"move half of xattrs in cluster %llu to %llu
\n
"
,
mlog
(
0
,
"move half of xattrs in cluster %llu to %llu
\n
"
,
prev_blkno
,
new_blkno
);
(
unsigned
long
long
)
prev_blkno
,
(
unsigned
long
long
)
new_blkno
);
/*
/*
* We need to update the 1st half of the new cluster and
* We need to update the 1st half of the new cluster and
...
@@ -3177,7 +3180,7 @@ static int ocfs2_divide_xattr_bucket(struct inode *inode,
...
@@ -3177,7 +3180,7 @@ static int ocfs2_divide_xattr_bucket(struct inode *inode,
int
blocksize
=
inode
->
i_sb
->
s_blocksize
;
int
blocksize
=
inode
->
i_sb
->
s_blocksize
;
mlog
(
0
,
"move some of xattrs from bucket %llu to %llu
\n
"
,
mlog
(
0
,
"move some of xattrs from bucket %llu to %llu
\n
"
,
blk
,
new_blk
);
(
unsigned
long
long
)
blk
,
(
unsigned
long
long
)
new_blk
);
s_bhs
=
kcalloc
(
blk_per_bucket
,
sizeof
(
struct
buffer_head
*
),
GFP_NOFS
);
s_bhs
=
kcalloc
(
blk_per_bucket
,
sizeof
(
struct
buffer_head
*
),
GFP_NOFS
);
if
(
!
s_bhs
)
if
(
!
s_bhs
)
...
@@ -3376,7 +3379,8 @@ static int ocfs2_cp_xattr_bucket(struct inode *inode,
...
@@ -3376,7 +3379,8 @@ static int ocfs2_cp_xattr_bucket(struct inode *inode,
BUG_ON
(
s_blkno
==
t_blkno
);
BUG_ON
(
s_blkno
==
t_blkno
);
mlog
(
0
,
"cp bucket %llu to %llu, target is %d
\n
"
,
mlog
(
0
,
"cp bucket %llu to %llu, target is %d
\n
"
,
s_blkno
,
t_blkno
,
t_is_new
);
(
unsigned
long
long
)
s_blkno
,
(
unsigned
long
long
)
t_blkno
,
t_is_new
);
s_bhs
=
kzalloc
(
sizeof
(
struct
buffer_head
*
)
*
blk_per_bucket
,
s_bhs
=
kzalloc
(
sizeof
(
struct
buffer_head
*
)
*
blk_per_bucket
,
GFP_NOFS
);
GFP_NOFS
);
...
@@ -3448,7 +3452,8 @@ static int ocfs2_cp_xattr_cluster(struct inode *inode,
...
@@ -3448,7 +3452,8 @@ static int ocfs2_cp_xattr_cluster(struct inode *inode,
struct
ocfs2_xattr_header
*
xh
;
struct
ocfs2_xattr_header
*
xh
;
u64
to_blk_start
=
to_blk
;
u64
to_blk_start
=
to_blk
;
mlog
(
0
,
"cp xattrs from cluster %llu to %llu
\n
"
,
src_blk
,
to_blk
);
mlog
(
0
,
"cp xattrs from cluster %llu to %llu
\n
"
,
(
unsigned
long
long
)
src_blk
,
(
unsigned
long
long
)
to_blk
);
/*
/*
* We need to update the new cluster and 1 more for the update of
* We need to update the new cluster and 1 more for the update of
...
@@ -3579,7 +3584,8 @@ static int ocfs2_adjust_xattr_cross_cluster(struct inode *inode,
...
@@ -3579,7 +3584,8 @@ static int ocfs2_adjust_xattr_cross_cluster(struct inode *inode,
int
bpc
=
ocfs2_clusters_to_blocks
(
inode
->
i_sb
,
1
);
int
bpc
=
ocfs2_clusters_to_blocks
(
inode
->
i_sb
,
1
);
mlog
(
0
,
"adjust xattrs from cluster %llu len %u to %llu
\n
"
,
mlog
(
0
,
"adjust xattrs from cluster %llu len %u to %llu
\n
"
,
prev_blk
,
prev_clusters
,
new_blk
);
(
unsigned
long
long
)
prev_blk
,
prev_clusters
,
(
unsigned
long
long
)
new_blk
);
if
(
ocfs2_xattr_buckets_per_cluster
(
OCFS2_SB
(
inode
->
i_sb
))
>
1
)
if
(
ocfs2_xattr_buckets_per_cluster
(
OCFS2_SB
(
inode
->
i_sb
))
>
1
)
ret
=
ocfs2_mv_xattr_bucket_cross_cluster
(
inode
,
ret
=
ocfs2_mv_xattr_bucket_cross_cluster
(
inode
,
...
@@ -3649,7 +3655,7 @@ static int ocfs2_add_new_xattr_cluster(struct inode *inode,
...
@@ -3649,7 +3655,7 @@ static int ocfs2_add_new_xattr_cluster(struct inode *inode,
mlog
(
0
,
"Add new xattr cluster for %llu, previous xattr hash = %u, "
mlog
(
0
,
"Add new xattr cluster for %llu, previous xattr hash = %u, "
"previous xattr blkno = %llu
\n
"
,
"previous xattr blkno = %llu
\n
"
,
(
unsigned
long
long
)
OCFS2_I
(
inode
)
->
ip_blkno
,
(
unsigned
long
long
)
OCFS2_I
(
inode
)
->
ip_blkno
,
prev_cpos
,
prev_blkno
);
prev_cpos
,
(
unsigned
long
long
)
prev_blkno
);
ocfs2_init_xattr_tree_extent_tree
(
&
et
,
inode
,
root_bh
);
ocfs2_init_xattr_tree_extent_tree
(
&
et
,
inode
,
root_bh
);
...
@@ -3736,7 +3742,7 @@ static int ocfs2_add_new_xattr_cluster(struct inode *inode,
...
@@ -3736,7 +3742,7 @@ static int ocfs2_add_new_xattr_cluster(struct inode *inode,
}
}
}
}
mlog
(
0
,
"Insert %u clusters at block %llu for xattr at %u
\n
"
,
mlog
(
0
,
"Insert %u clusters at block %llu for xattr at %u
\n
"
,
num_bits
,
block
,
v_start
);
num_bits
,
(
unsigned
long
long
)
block
,
v_start
);
ret
=
ocfs2_insert_extent
(
osb
,
handle
,
inode
,
&
et
,
v_start
,
block
,
ret
=
ocfs2_insert_extent
(
osb
,
handle
,
inode
,
&
et
,
v_start
,
block
,
num_bits
,
0
,
meta_ac
);
num_bits
,
0
,
meta_ac
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
...
@@ -3781,7 +3787,7 @@ static int ocfs2_extend_xattr_bucket(struct inode *inode,
...
@@ -3781,7 +3787,7 @@ static int ocfs2_extend_xattr_bucket(struct inode *inode,
u16
bucket
=
le16_to_cpu
(
first_xh
->
xh_num_buckets
);
u16
bucket
=
le16_to_cpu
(
first_xh
->
xh_num_buckets
);
mlog
(
0
,
"extend xattr bucket in %llu, xattr extend rec starting "
mlog
(
0
,
"extend xattr bucket in %llu, xattr extend rec starting "
"from %llu, len = %u
\n
"
,
start_blk
,
"from %llu, len = %u
\n
"
,
(
unsigned
long
long
)
start_blk
,
(
unsigned
long
long
)
first_bh
->
b_blocknr
,
num_clusters
);
(
unsigned
long
long
)
first_bh
->
b_blocknr
,
num_clusters
);
BUG_ON
(
bucket
>=
num_buckets
);
BUG_ON
(
bucket
>=
num_buckets
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录