author | Linus Torvalds <torvalds@linux-foundation.org> | |
Thu, 9 Jul 2009 02:31:49 +0000 (19:31 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 9 Jul 2009 08:11:30 +0000 (01:11 -0700) | ||
commit | caa6b7825aaddb8a97a5b793ca61df0c1ec9b76b | |
tree | 1fa18bd1a39279e5e4f5889bb97aae89957cd544 | tree | snapshot |
parent | dba2e2037f40685bffc87d3e7114a02c5bda1eff | commit | diff |
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.
Reported by Dmitry Potapov for Cygwin.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
On filesystems without d_type, we can look at the cache entry first.
Doing an lstat() can be expensive.
Reported by Dmitry Potapov for Cygwin.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c | diff | blob | history |