rem: if(v->dir_next) {
add: if (vnode->dir_next) {
context: rootfs_remove_vnode(fs_cookie _fs, fs_vnode _v, bool r){	struct rootfs *fs = (struct rootfs *)_fs;	struct rootfs_vnode *v = (struct rootfs_vnode *)_v;	int err;	TRACE(("rootfs_removevnode: remove 0x%x (0x%x 0x%x), r %d\n", v, v->id, r));	if(!r)		mutex_lock(&fs->lock);	if(v->dir_next) {		// can't remove node if it's linked to the dir		panic("rootfs_removevnode: vnode %p asked to be removed is present in dir\n", v);	}	rootfs_delete_vnode(fs, v, false);	err = 0;	if (!r)		mutex_unlock(&fs->lock);	return err;}