LFS_UNUSED_INUM
if (lfs_sb_getfreehd(fs) == LFS_UNUSED_INUM) {
ip64->if_nextfree = LFS_UNUSED_INUM;
ip32->if_nextfree = LFS_UNUSED_INUM;
ip_v1->if_nextfree = LFS_UNUSED_INUM;
(ino == LFS_UNUSED_INUM || ino == LFS_ORPHAN_NEXTFREE(fs))
if ((VAL) == LFS_UNUSED_INUM) \
if ((VAL) == LFS_UNUSED_INUM) \
if (lfs_if_getnextfree(fs, ifp) == LFS_UNUSED_INUM
while (thisino != LFS_UNUSED_INUM) {
if (nextfree == LFS_UNUSED_INUM)
if (tail == LFS_UNUSED_INUM) {
KASSERTMSG((lfs_sb_getfreehd(fs) != LFS_UNUSED_INUM),
KASSERT(*ino != LFS_UNUSED_INUM && *ino != LFS_IFILE_INUM);
lfs_if_setnextfree(fs, ifp, LFS_UNUSED_INUM);
if (lfs_sb_getfreehd(fs) == LFS_UNUSED_INUM) {
KASSERTMSG((lfs_sb_getfreehd(fs) != LFS_UNUSED_INUM),
while (thisino != LFS_UNUSED_INUM) {
nextfree == LFS_UNUSED_INUM)
if (nextfree == LFS_UNUSED_INUM) {
lfs_if_setnextfree(fs, ifp, LFS_UNUSED_INUM);
if (lfs_sb_getfreehd(fs) == LFS_UNUSED_INUM) {
KASSERTMSG((lfs_sb_getfreehd(fs) != LFS_UNUSED_INUM),
for (ino = maxino - 1; ino > LFS_UNUSED_INUM; --ino) {
if (lfs_sb_getfreehd(fs) == LFS_UNUSED_INUM) {
return LFS_UNUSED_INUM;
for (tino = ino - 1; tino >= bound && tino > LFS_UNUSED_INUM; tino--)
return LFS_UNUSED_INUM;
return LFS_UNUSED_INUM;
tino > LFS_UNUSED_INUM; tino--)
tino = LFS_UNUSED_INUM;
KASSERTMSG((ino != LFS_UNUSED_INUM), "inode 0 freed");
lfs_if_setnextfree(fs, ifp, LFS_UNUSED_INUM);
if (tino == LFS_UNUSED_INUM) {
if (otail == LFS_UNUSED_INUM) {
if (onf == LFS_UNUSED_INUM) {
firstino = lastino = LFS_UNUSED_INUM;
if (ino == LFS_UNUSED_INUM || ino == LFS_IFILE_INUM)
if (firstino == LFS_UNUSED_INUM) {
KASSERT(nextfree == LFS_UNUSED_INUM);
lastino = LFS_UNUSED_INUM;
lastino = LFS_UNUSED_INUM;
lastino = LFS_UNUSED_INUM;