rem: mount = get_mount(device); if (mount == NULL) return B_BAD_VALUE;
add: status_t status = get_mount(device, &mount); if (status < B_OK) return status;
context: fs_sync(dev_t device){	struct fs_mount *mount;	mount = get_mount(device);	if (mount == NULL)		return B_BAD_VALUE;	mutex_lock(&sMountMutex);	status_t status = B_OK;	if (FS_MOUNT_CALL(mount, sync))		status = FS_MOUNT_CALL(mount, sync)(mount->cookie);	mutex_unlock(&sMountMutex);	// synchronize all vnodes	recursive_lock_lock(&mount->rlock);		struct vnode *vnode = NULL;	while ((vnode = (struct vnode *)list_get_next_item(&mount->vnodes, vnode)) != NULL) {		if (vnode->cache)			vm_cache_write_modified(vnode->cache);	}	recursive_lock_unlock(&mount->rlock);	put_mount(mount);	return status;}