[PATCH] fix bug in read-cache.c which loses files when merging a tree
authorJames Bottomley <James.Bottomley@SteelEye.com>
Mon, 18 Apr 2005 18:44:31 +0000 (11:44 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Apr 2005 18:44:31 +0000 (11:44 -0700)
I noticed this when I tried a non-trivial scsi merge and checked the
results against BK. The problem is that remove_entry_at() actually
decrements active_nr, so decrementing it in add_cache_entry() before
calling remove_entry_at() is a double decrement (hence we lose cache
entries at the end).

No differences found