Re: VFS + path walktrough

From: Miklos Szeredi
Date: Mon May 05 2008 - 14:45:08 EST


> > > > Take a look at 9P walk - it does *not* give
> > > > you anything resembling stat, you just get qids of intermediates.
> > >
> > > Which is exactly what's needed to populate the dentry tree, no?
> >
> > No - you need inodes as well (i.e. as the absolute least you want
> > mode and ownership). Which is to say, you need to issue stat on
> > each component in such situation anyway. Not a win...

And actually even that *could* be a win, if the network latency is
large. Because by doing the lookup first, the stats can be performed
in parallel. So a path with an arbitrary number of components could
be resolved in just 2 RTTs.

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