Fix counts when new link to existing inode is found on refresh

And the inode should not already have been in the directory before
refresh. Seems like a fairly obscure bug, but a bug nonetheless.
This commit is contained in:
Yorhel 2024-07-28 10:34:02 +02:00
parent 3c055810d0
commit 0a6bcee32b

View file

@ -238,7 +238,7 @@ pub const Link = extern struct {
l.next = l;
l.prev = l;
} else {
inodes.setStats(l, false);
inodes.setStats(d.key_ptr.*, false);
l.next = d.key_ptr.*;
l.prev = d.key_ptr.*.prev;
l.next.prev = l;