Fix off-by-one error in removal of cache entry.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 11 Apr 2005 05:06:50 +0000 (22:06 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 11 Apr 2005 05:06:50 +0000 (22:06 -0700)
commit76e7f4ec485f24b167b76db046dc2ca4562debd4
tree3d00c15360e1aea2a51558e5f56b95d11e9d7010
parent262e82b4a7ec708d8c9e641421509b16b8ec69f1
Fix off-by-one error in removal of cache entry.

Also make the return value of "cache_name_pos()" be sane: positive
or zero if we found it (it's the index into the cache array), and
"-pos-1" to indicate where it should go if we didn't.
read-cache.c