[sheepdog] [PATCH 1/3] sheep: split object_cache_rw

Liu Yuan namei.unix at gmail.com
Fri Jul 13 14:13:02 CEST 2012


On 07/13/2012 07:06 PM, Christoph Hellwig wrote:
> Split object_cache_rw into one helper for reads and one for writes.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> 
> ---
>  sheep/object_cache.c |   56 ++++++++++++++++++++++++++++++---------------------
>  1 file changed, 33 insertions(+), 23 deletions(-)
> 
> Index: sheepdog/sheep/object_cache.c
> ===================================================================
> --- sheepdog.orig/sheep/object_cache.c	2012-07-13 09:24:16.419970922 +0200
> +++ sheepdog/sheep/object_cache.c	2012-07-13 12:46:12.396565209 +0200
> @@ -412,36 +412,42 @@ out:
>  	return ret;
>  }
>  
> -static int object_cache_rw(struct object_cache *oc, uint32_t idx,
> -			   struct request *req)
> +static int object_cache_write_int(struct object_cache *oc, uint32_t idx,
> +		struct request *req)
>  {

Maybe you mean object_cache_write_ent()?

> +static int object_cache_read_int(struct object_cache *oc, uint32_t idx,

Ditto.

Thanks,
Yuan



More information about the sheepdog mailing list