Re: [PATCH 0/12] FS-Cache: Generic filesystem caching facility

From: Linus Torvalds
Date: Tue Nov 15 2005 - 11:54:18 EST




On Tue, 15 Nov 2005, Jamie Lokier wrote:

> Linus Torvalds wrote:
> > And if it _is_ properly named (ie it really does mean "this entry
> > positively does not exist") then it shouldn't have the same
> > representation as NULL, because NULL really is traditionally used
> > for "unknown" rather than "known to not exist".
>
> You mean like:
>
> > a negative dentry (dentry->d_inode = NULL) is another.
>
> ? :)

The _dentry_ is negative, and it is not NULL. It has an explicit flag
saying that it's negative.

We do not have negative inode caches.

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