Re: 2002-06-20 changes in dir.c


> I found a partial discussion in June that this would cause some kind
> of speedup. However I couldn't find the whole thread in the archives
> and the information there is not enough so I have to ask - how does
> this change cause a VFS speedup ? It seems the speedup will occur
> at some point after do_load_dir () is called i.e. when printing every
> single file entry. Then why do we have to skip the ".." in
> handle_dirent ? Skipping ".." in handle_direntry causes an invalid file_entry
> structure to be inserted later by add_dotdot_to_list () i.e. mtime,
> atime, permission, etc are not valid. If add_dotdot_to_list () puts
> some special information in the file_entry structure for the ".." is
> it posible just to set this piece of information along with the
> information returned by mc_readdir() for the parent directory ?

Not sure if I understand you, but the whole idea is not read the parent 
directory.  Don't assume that it's cashed.  If I go straight to 
server:/home/user from the hotlist, server:/home is not cached, and it can 
be a huge directory.

Pavel Roskin

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