[PATCH v3 3/9] xfsrestore: cache path lookups

Christoph Hellwig hch at infradead.org
Wed Nov 17 03:24:08 CST 2010


On Tue, Nov 16, 2010 at 09:05:05AM -0600, wkendall at sgi.com wrote:
> In order to resolve a pathname, xfsrestore must work from an inode
> number (from the dump) and recurse up the directory entry tree that it
> has constructed. Each level of recursion requires a seek and read to
> get the name of the dirent, and possibly a mmap of a section of the
> directory entry tree if it is not already mapped (and in that case,
> possibly a munmap of another section). It's quite common to resolve
> pathnames in the same directory consecutively, so simply caching the
> parent directory pathname from the previous lookup saves quite a bit
> of overhead.
> 
> Signed-off-by: Bill Kendall <wkendall at sgi.com>
> 
> Reviewed-by: Alex Elder <aelder at sgi.com>

Looks good,


Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the xfs mailing list