lkml.org 
[lkml]   [2002]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: negative dentries wasting ram
On Fri, May 24, 2002 at 12:12:16PM -0400, Alexander Viro wrote:
>
>
> On Fri, 24 May 2002, Andrea Arcangeli wrote:
>
> > The fs access will be exactly the same, only the dentry won't be
> > allocated because it's just in the hash, but it has no inode and it
> > doesn't correspond to any on-disk dentry, we simply cannot defer the
>
> RTFS.
>
> Lookup on a name that has hashed negative dentry does not touch fs code.
> At all.

of course I was thinking mostly at the unlink procedure, I see the point
now in having the information that no dentry exists on disk with such
name. that's an heuristic to optimize some common case but the unlink
and a create failure should definitely get rid of the negative dentry,
it's not a common case to delete a file and then to try to access it,
while there are common cases that wants to avoid stale dentries around
for deleted files.

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

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.071 / U:0.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site