Cleans up a bit, uses 8bit compares and saves us another 26 bytes
void i_deref(inoptr ino)
{
- uint16_t mode = ino->c_node.i_mode & F_MASK;
+ uint8_t mode = getmode(ino);
magic(ino);
if(!ino->c_refs)
panic(PANIC_INODE_FREED);
- if (mode == F_PIPE)
+ if (mode == MODE_R(F_PIPE))
wakeup((char *)ino);
/* If the inode has no links and no refs, it must have
/*
SN (mcy)
*/
- if (mode == F_REG || mode == F_DIR || mode == F_PIPE)
+ if (mode == MODE_R(F_REG) || mode == MODE_R(F_DIR) || mode == MODE_R(F_PIPE))
f_trunc(ino);
/* If the inode was modified, we must write it to disk. */