[sheepdog] [PATCH] object cache: remove RECLAIM flag from reclaim path

Liu Yuan namei.unix at gmail.com
Mon Jul 30 09:25:23 CEST 2012


On 07/30/2012 12:50 PM, levin li wrote:
>  find_cache_entry(struct object_cache *oc, uint32_t idx)
>  {
> -	struct object_cache_entry *entry;
> -
> -	entry = object_tree_search(&oc->object_tree, idx);
> -	if (!entry || entry->idx & CACHE_RECLAIM_BIT)
> -		return NULL;
> -
> -	return entry;
> +	return object_tree_search(&oc->object_tree, idx);
>  }

Then replace find_cache_entry by object_tree_search directly.

Thanks,
Yuan



More information about the sheepdog mailing list