/* set the percentage of blocks at which to start culling */
static int cachefiles_daemon_bcull(struct cachefiles_cache *, char *)
/* set the percentage of blocks at which to start culling */
static int cachefiles_daemon_bcull(struct cachefiles_cache *, char *)
{
	unsigned long bcull;
	_enter(",%s", args);
	if (!*args)
		return -EINVAL;
	bcull = simple_strtoul(args, &args, 10);
	if (args[0] != '%' || args[1] != '\0')
		return -EINVAL;
	if (bcull <= cache->bstop_percent || bcull >= cache->brun_percent)
		return cachefiles_daemon_range_error(cache, args);
	cache->bcull_percent = bcull;
	return 0;
}