lfs_flush_segment(); // dumps in-core segment // to disk, allocates next segment lfs_new_block(); // allocates new block on disk unlink: needs to have room in segment for both dir change info & inode change info lfs_change_block(); // adds info to change log lfs_start_atomic(); // starts atomic operation lfs_end_atomic(); // ends atomic operation // flushes change log // to in-core segment // atomically. If (size changelog > space in segment) // flush_segment