diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-25 10:32:42 -0400 |
---|---|---|
committer | Artem Bityutskiy <dedekind1@gmail.com> | 2011-07-04 03:54:26 -0400 |
commit | 4315fb4072905e45da94d51e2c1e86fa41c5fc5f (patch) | |
tree | e8e5f514cddf7b0d13cfe71897a83019da58da5c /fs/ubifs/tnc.c | |
parent | bfcf677decd8051c305b1d8fda407d069c2361e3 (diff) |
UBIFS: improve inode dumping function
Teach 'dbg_dump_inode()' dump directory entries for directory inodes.
This requires few additional changes:
1. The 'c' argument of 'dbg_dump_inode()' cannot be const any more.
2. Users of 'dbg_dump_inode()' should not have 'tnc_mutex' locked.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/tnc.c')
-rw-r--r-- | fs/ubifs/tnc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c index 91b4213dde84..48b6ee6fa848 100644 --- a/fs/ubifs/tnc.c +++ b/fs/ubifs/tnc.c | |||
@@ -3337,9 +3337,10 @@ out_dump: | |||
3337 | ubifs_err("inode %lu has size %lld, but there are data at offset %lld " | 3337 | ubifs_err("inode %lu has size %lld, but there are data at offset %lld " |
3338 | "(data key %s)", (unsigned long)inode->i_ino, size, | 3338 | "(data key %s)", (unsigned long)inode->i_ino, size, |
3339 | ((loff_t)block) << UBIFS_BLOCK_SHIFT, DBGKEY(key)); | 3339 | ((loff_t)block) << UBIFS_BLOCK_SHIFT, DBGKEY(key)); |
3340 | mutex_unlock(&c->tnc_mutex); | ||
3340 | dbg_dump_inode(c, inode); | 3341 | dbg_dump_inode(c, inode); |
3341 | dbg_dump_stack(); | 3342 | dbg_dump_stack(); |
3342 | err = -EINVAL; | 3343 | return -EINVAL; |
3343 | 3344 | ||
3344 | out_unlock: | 3345 | out_unlock: |
3345 | mutex_unlock(&c->tnc_mutex); | 3346 | mutex_unlock(&c->tnc_mutex); |