Re: d_add on negative dentry?

2001-03-06 Thread Petr Vandrovec
On 5 Mar 01 at 18:08, Alexander Viro wrote: > On Tue, 6 Mar 2001, Urban Widmark wrote: > > > > > Is it valid to call d_add on a negative dentry? > > (or on a dentry that is already linked in d_hash, but all negative > > dentries are, right?) > > Not all of them. It _is_ legal to do d_add() on

Re: d_add on negative dentry?

2001-03-05 Thread Alexander Viro
On Tue, 6 Mar 2001, Urban Widmark wrote: > > Is it valid to call d_add on a negative dentry? > (or on a dentry that is already linked in d_hash, but all negative > dentries are, right?) Not all of them. It _is_ legal to do d_add() on a negative dentry. Doing that for hashed dentries is a bug

d_add on negative dentry?

2001-03-05 Thread Urban Widmark
Is it valid to call d_add on a negative dentry? (or on a dentry that is already linked in d_hash, but all negative dentries are, right?) I'm guessing it isn't because I think that is how I can get my machine to hang in d_lookup, looping on a corrupt d_hash list. The problem can be reproduced