lkml.org 
[lkml]   [1999]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] speedup for directory tree traversals


On Sat, 5 Jun 1999, Jamie Lokier wrote:

> I've implemented the fs-specifics for msdos and ext2. vfat is hairier
> and I thought it'd tread on Alex Viro's toes. Unfortunately the

Jamie, it's pretty easy atop of FAT patch, both for msdos and vfat. Look
for fat_build_inode() - all we need is to add an argument want_directory
and pass 1 from lookup() in case of O_DIRECTORY in flags.
fat_build_inode() should reject the non-directory stuff if this argument
is set (*res=-ENOTDIR; return NULL;) and there we go.

Linus, could you apply the FAT patch to 2.2? It is stable and I have a
couple of optimizations (cyclic search upon lookup, small internal page
cache for unicode translations) that would require additional testing. It
would be much more convenient to test them with the main code already in
place. I've seen no complaints on this patch and it's running in 2.3.x
since, erm, May 14th. Plus there were several months of testing before
that. Original patch (against 2.2.8) should apply with a couple of line
number mismatches. If you prefer a rediffed variant - just tell and I'll
send it to you immediately.
Cheers,
Al


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

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