* Copyright (c) 1980, 1986 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)pass3.c 5.10 (Berkeley) %G%";
register struct inoinfo
**inpp
, *inp
;
for (inpp
= &inpsort
[inplast
- 1]; inpp
>= inpsort
; inpp
--) {
if (inp
->i_number
== ROOTINO
||
!(inp
->i_parent
== 0 || statemap
[inp
->i_number
] == DSTATE
))
if (statemap
[inp
->i_number
] == DCLEAR
)
for (loopcnt
= 0; ; loopcnt
++) {
if (inp
->i_parent
== 0 ||
statemap
[inp
->i_parent
] != DSTATE
||
inp
= getinoinfo(inp
->i_parent
);
(void)linkup(orphan
, inp
->i_dotdot
);
inp
->i_parent
= inp
->i_dotdot
= lfdir
;
statemap
[orphan
] = DFOUND
;