Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
288e4d83
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
288e4d83
编写于
6月 13, 2007
作者:
D
Dave Kleikamp
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
JFS: Update print_hex_dump() syntax
Signed-off-by:
N
Dave Kleikamp
<
shaggy@linux.vnet.ibm.com
>
上级
209e101b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
28 addition
and
29 deletion
+28
-29
fs/jfs/jfs_imap.c
fs/jfs/jfs_imap.c
+2
-2
fs/jfs/jfs_logmgr.c
fs/jfs/jfs_logmgr.c
+13
-13
fs/jfs/jfs_metapage.c
fs/jfs/jfs_metapage.c
+2
-2
fs/jfs/jfs_txnmgr.c
fs/jfs/jfs_txnmgr.c
+9
-10
fs/jfs/xattr.c
fs/jfs/xattr.c
+2
-2
未找到文件。
fs/jfs/jfs_imap.c
浏览文件 @
288e4d83
...
...
@@ -890,8 +890,8 @@ int diFree(struct inode *ip)
* the map.
*/
if
(
iagno
>=
imap
->
im_nextiag
)
{
print
k
(
KERN_ERR
"Dump of imap:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
imap
,
32
);
print
_hex_dump
(
KERN_ERR
,
"imap: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
imap
,
32
,
0
);
jfs_error
(
ip
->
i_sb
,
"diFree: inum = %d, iagno = %d, nextiag = %d"
,
(
uint
)
inum
,
iagno
,
imap
->
im_nextiag
);
...
...
fs/jfs/jfs_logmgr.c
浏览文件 @
288e4d83
...
...
@@ -1626,22 +1626,22 @@ void jfs_flush_journal(struct jfs_log *log, int wait)
list_for_each_entry
(
lp
,
&
log
->
synclist
,
synclist
)
{
if
(
lp
->
xflag
&
COMMIT_PAGE
)
{
struct
metapage
*
mp
=
(
struct
metapage
*
)
lp
;
printk
(
KERN_ERR
"orphan metapage:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
lp
,
sizeof
(
struct
metapage
));
printk
(
KERN_ERR
"page:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
mp
->
page
,
sizeof
(
struct
page
));
}
else
{
printk
(
KERN_ERR
"orphan tblock:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
lp
,
sizeof
(
struct
tblock
));
}
print_hex_dump
(
KERN_ERR
,
"metapage: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
mp
,
sizeof
(
struct
metapage
),
0
);
print_hex_dump
(
KERN_ERR
,
"page: "
,
DUMP_PREFIX_ADDRESS
,
16
,
sizeof
(
long
),
mp
->
page
,
sizeof
(
struct
page
),
0
);
}
else
print_hex_dump
(
KERN_ERR
,
"tblock:"
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
lp
,
sizeof
(
struct
tblock
),
0
);
}
}
#else
WARN_ON
(
!
list_empty
(
&
log
->
synclist
));
#endif
//assert(list_empty(&log->synclist));
clear_bit
(
log_FLUSH
,
&
log
->
flag
);
}
...
...
fs/jfs/jfs_metapage.c
浏览文件 @
288e4d83
...
...
@@ -472,8 +472,8 @@ static int metapage_writepage(struct page *page, struct writeback_control *wbc)
printk
(
KERN_ERR
"JFS: bio_add_page failed unexpectedly
\n
"
);
goto
skip
;
dump_bio:
print
k
(
KERN_ERR
"JFS: dump of bio:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
bio
,
sizeof
(
*
bio
)
);
print
_hex_dump
(
KERN_ERR
,
"JFS: dump of bio: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
bio
,
sizeof
(
*
bio
),
0
);
skip:
bio_put
(
bio
);
unlock_page
(
page
);
...
...
fs/jfs/jfs_txnmgr.c
浏览文件 @
288e4d83
...
...
@@ -830,16 +830,15 @@ struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp,
/* assert(jfs_ip->fileset == AGGREGATE_I); */
if
(
jfs_ip
->
fileset
!=
AGGREGATE_I
)
{
printk
(
KERN_ERR
"txLock: trying to lock locked page!"
);
printk
(
KERN_ERR
"ip:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
ip
,
sizeof
(
*
ip
));
printk
(
KERN_ERR
"mp:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
mp
,
sizeof
(
*
mp
));
printk
(
KERN_ERR
"Locker's tblk:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
tid_to_tblock
(
tid
),
sizeof
(
struct
tblock
));
printk
(
KERN_ERR
"Tlock:
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
tlck
,
sizeof
(
*
tlck
));
print_hex_dump
(
KERN_ERR
,
"ip: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
ip
,
sizeof
(
*
ip
),
0
);
print_hex_dump
(
KERN_ERR
,
"mp: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
mp
,
sizeof
(
*
mp
),
0
);
print_hex_dump
(
KERN_ERR
,
"Locker's tblock: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
tid_to_tblock
(
tid
),
sizeof
(
struct
tblock
),
0
);
print_hex_dump
(
KERN_ERR
,
"Tlock: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
tlck
,
sizeof
(
*
tlck
),
0
);
BUG
();
}
INCREMENT
(
stattx
.
waitlock
);
/* statistics */
...
...
fs/jfs/xattr.c
浏览文件 @
288e4d83
...
...
@@ -590,8 +590,8 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size)
size_check:
if
(
EALIST_SIZE
(
ea_buf
->
xattr
)
!=
ea_size
)
{
printk
(
KERN_ERR
"ea_get: invalid extended attribute
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
ea_buf
->
xattr
,
ea_size
);
print_hex_dump
(
KERN_ERR
,
""
,
DUMP_PREFIX_ADDRESS
,
16
,
1
,
ea_buf
->
xattr
,
ea_size
,
1
);
ea_release
(
inode
,
ea_buf
);
rc
=
-
EIO
;
goto
clean_up
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录