Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
288e4d83
Commit
288e4d83
authored
Jun 13, 2007
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: Update print_hex_dump() syntax
Signed-off-by:
Dave Kleikamp
<
shaggy@linux.vnet.ibm.com
>
parent
209e101b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
29 deletions
+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
No files found.
fs/jfs/jfs_imap.c
View file @
288e4d83
...
@@ -890,8 +890,8 @@ int diFree(struct inode *ip)
...
@@ -890,8 +890,8 @@ int diFree(struct inode *ip)
* the map.
* the map.
*/
*/
if
(
iagno
>=
imap
->
im_nextiag
)
{
if
(
iagno
>=
imap
->
im_nextiag
)
{
print
k
(
KERN_ERR
"Dump of imap:
\n
"
);
print
_hex_dump
(
KERN_ERR
,
"imap: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
imap
,
32
);
imap
,
32
,
0
);
jfs_error
(
ip
->
i_sb
,
jfs_error
(
ip
->
i_sb
,
"diFree: inum = %d, iagno = %d, nextiag = %d"
,
"diFree: inum = %d, iagno = %d, nextiag = %d"
,
(
uint
)
inum
,
iagno
,
imap
->
im_nextiag
);
(
uint
)
inum
,
iagno
,
imap
->
im_nextiag
);
...
...
fs/jfs/jfs_logmgr.c
View file @
288e4d83
...
@@ -1626,22 +1626,22 @@ void jfs_flush_journal(struct jfs_log *log, int wait)
...
@@ -1626,22 +1626,22 @@ void jfs_flush_journal(struct jfs_log *log, int wait)
list_for_each_entry
(
lp
,
&
log
->
synclist
,
synclist
)
{
list_for_each_entry
(
lp
,
&
log
->
synclist
,
synclist
)
{
if
(
lp
->
xflag
&
COMMIT_PAGE
)
{
if
(
lp
->
xflag
&
COMMIT_PAGE
)
{
struct
metapage
*
mp
=
(
struct
metapage
*
)
lp
;
struct
metapage
*
mp
=
(
struct
metapage
*
)
lp
;
printk
(
KERN_ERR
"orphan metapage:
\n
"
);
print_hex_dump
(
KERN_ERR
,
"metapage: "
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
lp
,
sizeof
(
struct
metapage
));
mp
,
sizeof
(
struct
metapage
),
0
);
printk
(
KERN_ERR
"page:
\n
"
);
print_hex_dump
(
KERN_ERR
,
"page: "
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
DUMP_PREFIX_ADDRESS
,
16
,
mp
->
page
,
sizeof
(
struct
page
));
sizeof
(
long
),
mp
->
page
,
}
sizeof
(
struct
page
),
0
);
else
{
}
else
printk
(
KERN_ERR
"orphan tblock:
\n
"
);
print_hex_dump
(
KERN_ERR
,
"tblock:"
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
lp
,
sizeof
(
struct
tblock
));
lp
,
sizeof
(
struct
tblock
),
0
);
}
}
}
}
}
#else
WARN_ON
(
!
list_empty
(
&
log
->
synclist
));
#endif
#endif
//assert(list_empty(&log->synclist));
clear_bit
(
log_FLUSH
,
&
log
->
flag
);
clear_bit
(
log_FLUSH
,
&
log
->
flag
);
}
}
...
...
fs/jfs/jfs_metapage.c
View file @
288e4d83
...
@@ -472,8 +472,8 @@ static int metapage_writepage(struct page *page, struct writeback_control *wbc)
...
@@ -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
"
);
printk
(
KERN_ERR
"JFS: bio_add_page failed unexpectedly
\n
"
);
goto
skip
;
goto
skip
;
dump_bio:
dump_bio:
print
k
(
KERN_ERR
"JFS: dump of bio:
\n
"
);
print
_hex_dump
(
KERN_ERR
,
"JFS: dump of bio: "
,
DUMP_PREFIX_ADDRESS
,
16
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
bio
,
sizeof
(
*
bio
)
);
4
,
bio
,
sizeof
(
*
bio
),
0
);
skip:
skip:
bio_put
(
bio
);
bio_put
(
bio
);
unlock_page
(
page
);
unlock_page
(
page
);
...
...
fs/jfs/jfs_txnmgr.c
View file @
288e4d83
...
@@ -830,16 +830,15 @@ struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp,
...
@@ -830,16 +830,15 @@ struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp,
/* assert(jfs_ip->fileset == AGGREGATE_I); */
/* assert(jfs_ip->fileset == AGGREGATE_I); */
if
(
jfs_ip
->
fileset
!=
AGGREGATE_I
)
{
if
(
jfs_ip
->
fileset
!=
AGGREGATE_I
)
{
printk
(
KERN_ERR
"txLock: trying to lock locked page!"
);
printk
(
KERN_ERR
"txLock: trying to lock locked page!"
);
printk
(
KERN_ERR
"ip:
\n
"
);
print_hex_dump
(
KERN_ERR
,
"ip: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
ip
,
sizeof
(
*
ip
));
ip
,
sizeof
(
*
ip
),
0
);
printk
(
KERN_ERR
"mp:
\n
"
);
print_hex_dump
(
KERN_ERR
,
"mp: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
mp
,
sizeof
(
*
mp
));
mp
,
sizeof
(
*
mp
),
0
);
printk
(
KERN_ERR
"Locker's tblk:
\n
"
);
print_hex_dump
(
KERN_ERR
,
"Locker's tblock: "
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
tid_to_tblock
(
tid
),
tid_to_tblock
(
tid
),
sizeof
(
struct
tblock
));
sizeof
(
struct
tblock
),
0
);
printk
(
KERN_ERR
"Tlock:
\n
"
);
print_hex_dump
(
KERN_ERR
,
"Tlock: "
,
DUMP_PREFIX_ADDRESS
,
16
,
4
,
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
tlck
,
tlck
,
sizeof
(
*
tlck
),
0
);
sizeof
(
*
tlck
));
BUG
();
BUG
();
}
}
INCREMENT
(
stattx
.
waitlock
);
/* statistics */
INCREMENT
(
stattx
.
waitlock
);
/* statistics */
...
...
fs/jfs/xattr.c
View file @
288e4d83
...
@@ -590,8 +590,8 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size)
...
@@ -590,8 +590,8 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size)
size_check:
size_check:
if
(
EALIST_SIZE
(
ea_buf
->
xattr
)
!=
ea_size
)
{
if
(
EALIST_SIZE
(
ea_buf
->
xattr
)
!=
ea_size
)
{
printk
(
KERN_ERR
"ea_get: invalid extended attribute
\n
"
);
printk
(
KERN_ERR
"ea_get: invalid extended attribute
\n
"
);
print_hex_dump
(
KERN_ERR
,
DUMP_PREFIX_ADDRESS
,
ea_buf
->
xattr
,
print_hex_dump
(
KERN_ERR
,
""
,
DUMP_PREFIX_ADDRESS
,
16
,
1
,
ea_size
);
ea_buf
->
xattr
,
ea_size
,
1
);
ea_release
(
inode
,
ea_buf
);
ea_release
(
inode
,
ea_buf
);
rc
=
-
EIO
;
rc
=
-
EIO
;
goto
clean_up
;
goto
clean_up
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment