VFS: only lookup once
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 17 Sep 2014 23:06:19 +0000 (16:06 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 17 Sep 2014 23:06:19 +0000 (16:06 -0700)
commit38f03cd6d7042b3d80b58567cec04578cdcf0de0
treefc58f0133d5c5abc03bf81b8b9337967b4f08126
parent4870a2d006ac6fc67f13cbb13949b7d3c4d3a9aa
VFS: only lookup once

Path lookups were looking up twice on failure, optimisticly assuming we'd want
to O_CREAT(E) too.

This isn't a huge deal.  It was more of a problem when our path lookups were
buggy and took 20usec.  Then the extra lookup was expensive.
kern/src/vfs.c