lkml.org 
[lkml]   [1997]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: dcache questions
Bill Hawes writes:
> Since a short filename can be detected
> by the presence of the ~ character, it shouldn't be necessary to do a
> disk lookup for long names, so this operation would remain fast.

A ~ is not a guarantee in an alias, so this method cannot be used.

How about a small change to how the dcache works? Add a linked element
to the dentry structure. Then for vfat longname/alias pairs, the
two entries would be added to the dcache. The longname would be used
as the normal dentry, and the shortname would set its linked element
to point to the longname dentry. In lookup_dentry, the linked element
would be followed to get the base dentry, so only the longname dentry
would ever be passed into calls like vfat_lookup. This probably would
complicate shrinking of the dcache, so it might not be an acceptable
solution.

- Gordon

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