Do not try to adjust a directory depth when its reconnection is declined.

MFC after:    1 week
Sponsored by: The FreeBSD Foundation
This commit is contained in:
Kirk McKusick 2023-05-26 22:55:11 -07:00
parent 03a8680202
commit 49943856eb

View File

@ -100,10 +100,10 @@ pass3(void)
if (linkup(orphan, inp->i_dotdot, NULL)) {
inp->i_parent = inp->i_dotdot = lfdir;
inoinfo(lfdir)->ino_linkcnt--;
inoinfo(orphan)->ino_state = DFOUND;
check_dirdepth(inp);
propagate();
}
inoinfo(orphan)->ino_state = DFOUND;
check_dirdepth(inp);
propagate();
continue;
}
pfatal("ORPHANED DIRECTORY LOOP DETECTED I=%lu",