mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ext3/ext4: orphan list check on destroy_inode
Customers claims to ext3-related errors, investigation showed that ext3 orphan list has been corrupted and have the reference to non-ext3 inode. The following debug helps to understand the reasons of this issue. [[email protected]: update for print_hex_dump() changes] Signed-off-by: Vasily Averin <[email protected]> Cc: "Randy.Dunlap" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
dcae56ea66
commit
9f7dd93de0
2 changed files with 16 additions and 0 deletions
|
|
@ -510,6 +510,14 @@ static struct inode *ext4_alloc_inode(struct super_block *sb)
|
|||
|
||||
static void ext4_destroy_inode(struct inode *inode)
|
||||
{
|
||||
if (!list_empty(&(EXT4_I(inode)->i_orphan))) {
|
||||
printk("EXT4 Inode %p: orphan list check failed!\n",
|
||||
EXT4_I(inode));
|
||||
print_hex_dump(KERN_INFO, "", DUMP_PREFIX_ADDRESS, 16, 4,
|
||||
EXT4_I(inode), sizeof(struct ext4_inode_info),
|
||||
true);
|
||||
dump_stack();
|
||||
}
|
||||
kmem_cache_free(ext4_inode_cachep, EXT4_I(inode));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue