|
Lines 133-141
Link Here
|
| 133 |
*/ |
133 |
*/ |
| 134 |
if ((preen || inoopt) && usedsoftdep && !rebuildcg) { |
134 |
if ((preen || inoopt) && usedsoftdep && !rebuildcg) { |
| 135 |
cp = &cg_inosused(cgp)[(inosused - 1) / CHAR_BIT]; |
135 |
cp = &cg_inosused(cgp)[(inosused - 1) / CHAR_BIT]; |
| 136 |
for ( ; inosused > 0; inosused -= CHAR_BIT, cp--) { |
136 |
for ( ; inosused != 0; cp--) { |
| 137 |
if (*cp == 0) |
137 |
if (*cp == 0) { |
|
|
138 |
if (inosused > CHAR_BIT) |
| 139 |
inosused -= CHAR_BIT; |
| 140 |
else |
| 141 |
inosused = 0; |
| 138 |
continue; |
142 |
continue; |
|
|
143 |
} |
| 139 |
for (i = 1 << (CHAR_BIT - 1); i > 0; i >>= 1) { |
144 |
for (i = 1 << (CHAR_BIT - 1); i > 0; i >>= 1) { |
| 140 |
if (*cp & i) |
145 |
if (*cp & i) |
| 141 |
break; |
146 |
break; |
|
Lines 143-150
Link Here
|
| 143 |
} |
148 |
} |
| 144 |
break; |
149 |
break; |
| 145 |
} |
150 |
} |
| 146 |
if (inosused < 0) |
|
|
| 147 |
inosused = 0; |
| 148 |
} |
151 |
} |
| 149 |
/* |
152 |
/* |
| 150 |
* Allocate inoinfo structures for the allocated inodes. |
153 |
* Allocate inoinfo structures for the allocated inodes. |