Re: [PATCH v5 0/6] fs/dcache: Track & limit # of negative dentries
From: Linus Torvalds
Date: Mon Jul 02 2018 - 19:04:20 EST
On Mon, Jul 2, 2018 at 3:54 PM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Lookie here, for example:
>
> [torvalds@i7 linux]$ strace -e trace=%file -c git status
So in the name of honestly, that's slightly misleading.
"git" will happily thread the actual index file up-to-date testing.
And that's hidden in the above numbers (because I didn't use "-f" to
follow threads), and they are all successful (because git will go an
'lstat()' on every single entry in the index file, and the index file
obviously is all valid filenames).
So the numbers quoted are closer to the
git ls-files -o --exclude-standard
command (which doesn't check the index state, it only checks "what
non-tracked files do I have that aren't the ones I explicitly
exclude").
Linus