Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031088AbcDMNvN (ORCPT ); Wed, 13 Apr 2016 09:51:13 -0400 Received: from [180.169.121.82] ([180.169.121.82]:37695 "EHLO ZXSHCAS02.zhaoxin.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1030870AbcDMNvL convert rfc822-to-8bit (ORCPT ); Wed, 13 Apr 2016 09:51:11 -0400 X-Greylist: delayed 330 seconds by postgrey-1.27 at vger.kernel.org; Wed, 13 Apr 2016 09:51:10 EDT From: Eric Shang To: Matthew Wilcox , Toshi Kani CC: "akpm@linux-foundation.org" , "dan.j.williams@intel.com" , "viro@zeniv.linux.org.uk" , "ross.zwisler@linux.intel.com" , "kirill.shutemov@linux.intel.com" , "david@fromorbit.com" , "jack@suse.cz" , "tytso@mit.edu" , "adilger.kernel@dilger.ca" , "linux-nvdimm@lists.01.org" , "linux-fsdevel@vger.kernel.org" , "linux-ext4@vger.kernel.org" , "xfs@oss.sgi.com" , "linux-kernel@vger.kernel.org" Subject: ext4 error Thread-Topic: ext4 error Thread-Index: AdGViWQD+9eM4SOlQAe9e4Q1QMF3cQ== Date: Wed, 13 Apr 2016 13:44:55 +0000 Message-ID: <0255994B402DE243B1DFC1057A00655201AC6F@ZXSHMBX02.zhaoxin.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.30.24.50] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2622 Lines: 28 HI All: I meet an ext4 error, following is the error log. After panic, I check the emmc by the tool debufs, the inode 69878 i_nlink is not zero. And this inode don't belong to parent dir 6987, it belong to other file(this inode belong to two files when check by debugfs ncheck), I guess than this inode has beed deleted in memory and already used by other file. But the parent dentry buff_head not flush to emmc. But when lookup this dentry can't find it' in dentry cache, and then lookup_real, read the dentry from emmc, get the file inode which already be deleted. Can any give me some help how to check this issue. My kernel version is 3.18 form Android . I thinks something wrong with dentry cache flush and dirty buff_head flush to emmc. Thanks all! :Sending Trackball (ACTION_MOVE): 0:(-[44802.841647] EXT4-fs error (device mmcblk0p16): ext4_lookup:1417: inode #69877: comm installd: deleted inode referenced: 69878 5.0[44802.853210] Aborting journal on device mmcblk0p16-8. ,2.[44802.858345] Kernel panic - not syncing: EXT4-fs (device mmcblk0p16): panic forced after error [44802.858345] [44802.868322] CPU: 1 PID: 216 Comm: installd Tainted: P O 3.18.0-94.02.04 #1 [44802.876223] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [44802.883927] [] (show_stack) from [] (dump_stack+0x70/0xbc) [44802.891117] [] (dump_stack) from [] (panic+0xa4/0x218) [44802.897965] [] (panic) from [] (ext4_handle_error+0x6c/0xa8) [44802.905330] [] (ext4_handle_error) from [] (__ext4_error_inode+0x6c/0x114) [44802.913909] [] (__ext4_error_inode) from [] (ext4_lookup+0xf0/0x148) [44802.921970] [] (ext4_lookup) from [] (lookup_real+0x20/0x50) [44802.929336] [] (lookup_real) from [] (__lookup_hash+0x34/0x44) [44802.936873] [] (__lookup_hash) from [] (lookup_slow+0x38/0x9c) [44802.944414] [] (lookup_slow) from [] (path_lookupat+0x228/0x728) [44802.952127] [] (path_lookupat) from [] (filename_lookup+0x20/0xbc) [44802.960013] [] (filename_lookup) from [] (user_path_at_empty+0x50/0x78) [44802.968334] [] (user_path_at_empty) from [] (user_path_at+0x14/0x1c) [44802.976394] [] (user_path_at) from [] (vfs_fstatat+0x48/0x8c) [44802.983847] [] (vfs_fstatat) from [] (SyS_fstatat64+0x14/0x30) [44802.991389] [] (SyS_fstatat64) from [] (ret_fast_syscall+0x0/0x48) Best Regards EricShang