Dircache: Fix a tiny-block reclaim bug
Logic left over from before switching from NULL-terminated to counted strings would prevent a single-byte tiny free block gap from being properly reclaimed into free string bytes. Due to rarity, not as disasterous to functionality so much as wrong. Change-Id: I68e0875b04bb0ab6cdead0fdf535144b9c1bc13e
This commit is contained in:
parent
c1b913bb7d
commit
0a5b0dd908
1 changed files with 1 additions and 1 deletions
|
@ -849,7 +849,7 @@ static void free_name(int nameidx, size_t size)
|
|||
while (beg[-1] == 0xfe)
|
||||
--beg;
|
||||
|
||||
while (end[1] == 0xfe)
|
||||
while (end[0] == 0xfe)
|
||||
++end;
|
||||
|
||||
size = end - beg;
|
||||
|
|
Loading…
Reference in a new issue