Re: Does your change make find faster by changing where it is storedor where it is returned?

From: Jamie Lokier (lfs@tantalophile.demon.co.uk)
Date: Mon Mar 06 2000 - 08:27:41 EST


Hans Reiser wrote:
> The content is in the subject line. No more needed to be said.

The file type is already stored in the directory for all filesystems
that say "FULL SUPPORT".

The patch changes where it is returned -- by not having to call stat(),
the inode is not read from disk. As a bonus you reduce inode cache
thrashing.

For filesystems that store the inode in the directory itself, there is
no saving in I/O. You may as well return the type info anyway because
it reduces kernel inode cache thrashing and reduces the number of
syscalls.

enjoy,
-- Jamie

-
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/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:19 EST