Re: kernel panic in inode_lookup
From: Jan Harkes <jaharkes@cs.cmu.edu>
Date: 2002-05-30 18:00:21
From: Jan Harkes <jaharkes@cs.cmu.edu>
Date: 2002-05-30 18:00:21
On Thu, May 30, 2002 at 01:45:22PM -0300, Marcos Dione wrote:
return dentry; /* ext2 does something like this */ return NULL; }
This could be your problem. real_lookup assumes that if you return anything it is a new dentry that you found in some magical way and drops the refcount on the old dentry (which happens to be the one you are returning). If the refcount drops to zero the dentry is up for grabs at which point you've lost any sanity in the kernel's data structures. Jan