/* find out if an object is in use or not */
int cachefiles_check_in_use(struct cachefiles_cache *cache, struct dentry *dir, char *filename)
/* find out if an object is in use or not */
int cachefiles_check_in_use(struct cachefiles_cache *cache, struct dentry *dir, char *filename)
{
	struct dentry *victim;
	victim = cachefiles_check_active(cache, dir, filename);
	if (IS_ERR(victim))
		return PTR_ERR(victim);
	mutex_unlock(&dir->d_inode->i_mutex);
	dput(victim);
	return 0;
}