/* remove the object's xattr to mark it stale  */
int cachefiles_remove_object_xattr(struct cachefiles_cache *cache, struct dentry *dentry)
/* remove the object's xattr to mark it stale  */
int cachefiles_remove_object_xattr(struct cachefiles_cache *cache, struct dentry *dentry)
{
	int ret;
	ret = vfs_removexattr(dentry, cachefiles_xattr_cache);
	if (ret < 0) {
		if (ret == -ENOENT || ret == -ENODATA)
			ret = 0;
		else if (ret != -ENOMEM)
			cachefiles_io_error(cache,
					    "Can't remove xattr from %lu"
					    " (error %d)",
					    dentry->d_inode->i_ino, -ret);
	}
	_leave(" = %d", ret);
	return ret;
}