From: Junio C Hamano Date: Thu, 09 Jul 2009 08:18:59 GMT Subject: Re: [PATCH 3/3] Avoid doing extra 'lstat()'s for d_type if we have an up-to-date cache entry Message-ID: <7vskh646bw.fsf@alter.siamese.dyndns.org> In-Reply-To: Linus Torvalds writes: > From: Linus Torvalds > Date: Wed, 8 Jul 2009 19:31:49 -0700 > Subject: [PATCH 3/3] Avoid doing extra 'lstat()'s for d_type if we have an up-to-date cache entry > > On filesystems without d_type, we can look at the cache entry first. > Doing an lstat() can be expensive. Thanks. I was wondering if we could also say that D exists as a directory when we know there is D/F in the index and is up to date.