Re: d_entry delete ( d_delete ) in d_cache.c on linux 2.6.15 and beyond

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2006-06-02 at 15:41 -0400, Flavio wrote:
> Hello,
> 
> I notice that on versions 2.6.15 and later, the function
> 
>      void d_delete(struct dentry * dentry)
> 
> Implements a mechanism for notifying the deletion of the d_entry.
> 
> The implementation assumes that the d_entry has a non-null d_inode pointer
> and that seems to be terribly wrong. In other words, how can a
> "negative d_entry"
> be deleted?

d_drop()?

> Implementation of rename may use dummy dentries (that have d_inode
> set to NULL) and that is a problem as well.

d_drop()!

Cheers,
  Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux