Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
92b97816
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看板
提交
92b97816
编写于
3月 19, 2012
作者:
T
Theodore Ts'o
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ext4: change some printk() calls to use ext4_msg() instead
Signed-off-by:
N
"Theodore Ts'o"
<
tytso@mit.edu
>
上级
d9ee81da
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
48 addition
and
41 deletion
+48
-41
fs/ext4/dir.c
fs/ext4/dir.c
+3
-2
fs/ext4/extents.c
fs/ext4/extents.c
+10
-9
fs/ext4/ialloc.c
fs/ext4/ialloc.c
+10
-9
fs/ext4/inode.c
fs/ext4/inode.c
+13
-10
fs/ext4/resize.c
fs/ext4/resize.c
+10
-9
fs/ext4/super.c
fs/ext4/super.c
+2
-2
未找到文件。
fs/ext4/dir.c
浏览文件 @
92b97816
...
...
@@ -425,8 +425,9 @@ static int call_filldir(struct file *filp, void *dirent,
sb
=
inode
->
i_sb
;
if
(
!
fname
)
{
printk
(
KERN_ERR
"EXT4-fs: call_filldir: called with "
"null fname?!?
\n
"
);
ext4_msg
(
sb
,
KERN_ERR
,
"%s:%d: inode #%lu: comm %s: "
"called with null fname?!?"
,
__func__
,
__LINE__
,
inode
->
i_ino
,
current
->
comm
);
return
0
;
}
curr_pos
=
hash2pos
(
fname
->
hash
,
fname
->
minor_hash
);
...
...
fs/ext4/extents.c
浏览文件 @
92b97816
...
...
@@ -2728,17 +2728,17 @@ void ext4_ext_init(struct super_block *sb)
if
(
EXT4_HAS_INCOMPAT_FEATURE
(
sb
,
EXT4_FEATURE_INCOMPAT_EXTENTS
))
{
#if defined(AGGRESSIVE_TEST) || defined(CHECK_BINSEARCH) || defined(EXTENTS_STATS)
printk
(
KERN_INFO
"EXT4-fs: file extents enabled"
);
printk
(
KERN_INFO
"EXT4-fs: file extents enabled"
#ifdef AGGRESSIVE_TEST
printk
(
", aggressive tests"
);
", aggressive tests"
#endif
#ifdef CHECK_BINSEARCH
printk
(
", check binsearch"
);
", check binsearch"
#endif
#ifdef EXTENTS_STATS
printk
(
", stats"
);
", stats"
#endif
printk
(
"
\n
"
);
"
\n
"
);
#endif
#ifdef EXTENTS_STATS
spin_lock_init
(
&
EXT4_SB
(
sb
)
->
s_ext_stats_lock
);
...
...
@@ -4412,10 +4412,11 @@ int ext4_convert_unwritten_extents(struct inode *inode, loff_t offset,
EXT4_GET_BLOCKS_IO_CONVERT_EXT
);
if
(
ret
<=
0
)
{
WARN_ON
(
ret
<=
0
);
printk
(
KERN_ERR
"%s: ext4_ext_map_blocks "
"returned error inode#%lu, block=%u, "
"max_blocks=%u"
,
__func__
,
inode
->
i_ino
,
map
.
m_lblk
,
map
.
m_len
);
ext4_msg
(
inode
->
i_sb
,
KERN_ERR
,
"%s:%d: inode #%lu: block %u: len %u: "
"ext4_ext_map_blocks returned %d"
,
__func__
,
__LINE__
,
inode
->
i_ino
,
map
.
m_lblk
,
map
.
m_len
,
ret
);
}
ext4_mark_inode_dirty
(
handle
,
inode
);
ret2
=
ext4_journal_stop
(
handle
);
...
...
fs/ext4/ialloc.c
浏览文件 @
92b97816
...
...
@@ -204,19 +204,20 @@ void ext4_free_inode(handle_t *handle, struct inode *inode)
struct
ext4_sb_info
*
sbi
;
int
fatal
=
0
,
err
,
count
,
cleared
;
if
(
!
sb
)
{
printk
(
KERN_ERR
"EXT4-fs: %s:%d: inode on "
"nonexistent device
\n
"
,
__func__
,
__LINE__
);
return
;
}
if
(
atomic_read
(
&
inode
->
i_count
)
>
1
)
{
printk
(
KERN_ERR
"ext4_free_inode: inode has count=%d
\n
"
,
ext4_msg
(
sb
,
KERN_ERR
,
"%s:%d: inode #%lu: count=%d"
,
__func__
,
__LINE__
,
inode
->
i_ino
,
atomic_read
(
&
inode
->
i_count
));
return
;
}
if
(
inode
->
i_nlink
)
{
printk
(
KERN_ERR
"ext4_free_inode: inode has nlink=%d
\n
"
,
inode
->
i_nlink
);
return
;
}
if
(
!
sb
)
{
printk
(
KERN_ERR
"ext4_free_inode: inode on "
"nonexistent device
\n
"
);
ext4_msg
(
sb
,
KERN_ERR
,
"%s:%d: inode #%lu: nlink=%d
\n
"
,
__func__
,
__LINE__
,
inode
->
i_ino
,
inode
->
i_nlink
);
return
;
}
sbi
=
EXT4_SB
(
sb
);
...
...
fs/ext4/inode.c
浏览文件 @
92b97816
...
...
@@ -1428,20 +1428,22 @@ static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd)
static
void
ext4_print_free_blocks
(
struct
inode
*
inode
)
{
struct
ext4_sb_info
*
sbi
=
EXT4_SB
(
inode
->
i_sb
);
printk
(
KERN_CRIT
"Total free blocks count %lld
\n
"
,
struct
super_block
*
sb
=
inode
->
i_sb
;
ext4_msg
(
sb
,
KERN_CRIT
,
"Total free blocks count %lld"
,
EXT4_C2B
(
EXT4_SB
(
inode
->
i_sb
),
ext4_count_free_clusters
(
inode
->
i_sb
)));
printk
(
KERN_CRIT
"Free/Dirty block details
\n
"
);
printk
(
KERN_CRIT
"free_blocks=%lld
\n
"
,
ext4_msg
(
sb
,
KERN_CRIT
,
"Free/Dirty block details
"
);
ext4_msg
(
sb
,
KERN_CRIT
,
"free_blocks=%lld
"
,
(
long
long
)
EXT4_C2B
(
EXT4_SB
(
inode
->
i_sb
),
percpu_counter_sum
(
&
sbi
->
s_freeclusters_counter
)));
printk
(
KERN_CRIT
"dirty_blocks=%lld
\n
"
,
ext4_msg
(
sb
,
KERN_CRIT
,
"dirty_blocks=%lld
"
,
(
long
long
)
EXT4_C2B
(
EXT4_SB
(
inode
->
i_sb
),
percpu_counter_sum
(
&
sbi
->
s_dirtyclusters_counter
)));
printk
(
KERN_CRIT
"Block reservation details
\n
"
);
printk
(
KERN_CRIT
"i_reserved_data_blocks=%u
\n
"
,
ext4_msg
(
sb
,
KERN_CRIT
,
"Block reservation details
"
);
ext4_msg
(
sb
,
KERN_CRIT
,
"i_reserved_data_blocks=%u
"
,
EXT4_I
(
inode
)
->
i_reserved_data_blocks
);
printk
(
KERN_CRIT
"i_reserved_meta_blocks=%u
\n
"
,
ext4_msg
(
sb
,
KERN_CRIT
,
"i_reserved_meta_blocks=%u
"
,
EXT4_I
(
inode
)
->
i_reserved_meta_blocks
);
return
;
}
...
...
@@ -2809,7 +2811,8 @@ static void ext4_end_io_buffer_write(struct buffer_head *bh, int uptodate)
goto
out
;
if
(
!
(
io_end
->
inode
->
i_sb
->
s_flags
&
MS_ACTIVE
))
{
printk
(
"sb umounted, discard end_io request for inode %lu
\n
"
,
ext4_msg
(
io_end
->
inode
->
i_sb
,
KERN_INFO
,
"sb umounted, discard end_io request for inode %lu"
,
io_end
->
inode
->
i_ino
);
ext4_free_io_end
(
io_end
);
goto
out
;
...
...
fs/ext4/resize.c
浏览文件 @
92b97816
...
...
@@ -1512,16 +1512,17 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es,
o_blocks_count
=
ext4_blocks_count
(
es
);
if
(
test_opt
(
sb
,
DEBUG
))
printk
(
KERN_DEBUG
"EXT4-fs: extending last group from %llu to %llu blocks
\n
"
,
ext4_msg
(
sb
,
KERN_DEBUG
,
"extending last group from %llu to %llu blocks"
,
o_blocks_count
,
n_blocks_count
);
if
(
n_blocks_count
==
0
||
n_blocks_count
==
o_blocks_count
)
return
0
;
if
(
n_blocks_count
>
(
sector_t
)(
~
0ULL
)
>>
(
sb
->
s_blocksize_bits
-
9
))
{
printk
(
KERN_ERR
"EXT4-fs: filesystem on %s:"
" too large to resize to %llu blocks safely
\n
"
,
sb
->
s_id
,
n_blocks_count
);
ext4_msg
(
sb
,
KERN_ERR
,
"filesystem too large to resize to %llu blocks safely
"
,
n_blocks_count
);
if
(
sizeof
(
sector_t
)
<
8
)
ext4_warning
(
sb
,
"CONFIG_LBDAF not enabled"
);
return
-
EINVAL
;
...
...
@@ -1591,8 +1592,8 @@ int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count)
o_blocks_count
=
ext4_blocks_count
(
es
);
if
(
test_opt
(
sb
,
DEBUG
))
printk
(
KERN_DEBUG
"EXT4-fs:
resizing filesystem from %llu "
"
upto %llu blocks
\n
"
,
o_blocks_count
,
n_blocks_count
);
ext4_msg
(
sb
,
KERN_DEBUG
,
"
resizing filesystem from %llu "
"
to %llu blocks
"
,
o_blocks_count
,
n_blocks_count
);
if
(
n_blocks_count
<
o_blocks_count
)
{
/* On-line shrinking not supported */
...
...
@@ -1676,7 +1677,7 @@ int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count)
iput
(
resize_inode
);
if
(
test_opt
(
sb
,
DEBUG
))
printk
(
KERN_DEBUG
"EXT4-fs:
resized filesystem from %llu "
"upto %llu blocks
\n
"
,
o_blocks_count
,
n_blocks_count
);
ext4_msg
(
sb
,
KERN_DEBUG
,
"
resized filesystem from %llu "
"upto %llu blocks"
,
o_blocks_count
,
n_blocks_count
);
return
err
;
}
fs/ext4/super.c
浏览文件 @
92b97816
...
...
@@ -376,7 +376,7 @@ void ext4_journal_abort_handle(const char *caller, unsigned int line,
if
(
is_handle_aborted
(
handle
))
return
;
printk
(
KERN_ERR
"%s:%d: aborting transaction: %s in %s
\n
"
,
printk
(
KERN_ERR
"
EXT4-fs:
%s:%d: aborting transaction: %s in %s
\n
"
,
caller
,
line
,
errstr
,
err_fn
);
jbd2_journal_abort_handle
(
handle
);
...
...
@@ -2809,7 +2809,7 @@ static int ext4_run_lazyinit_thread(void)
ext4_clear_request_list
();
kfree
(
ext4_li_info
);
ext4_li_info
=
NULL
;
printk
(
KERN_CRIT
"EXT4: error %d creating inode table "
printk
(
KERN_CRIT
"EXT4
-fs
: error %d creating inode table "
"initialization thread
\n
"
,
err
);
return
err
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录