[sheepdog] [PATCH v3] cache: correct block size calculation for inode object

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Aug 8 09:27:22 CEST 2013


At Thu,  8 Aug 2013 14:21:24 +0800,
Liu Yuan wrote:
> 
> inode and data object have different sizes and thus cache block size is
> different. Current code fail to get the right size for inode object when
> its last bit of bmap is set with the fixed block size.
> 
> This patch tries to get the dynamic block size based on the oid.
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  sheep/object_cache.c |   43 +++++++++++++++++++++----------------------
>  1 file changed, 21 insertions(+), 22 deletions(-)

Applied, thanks.

Kazutaka



More information about the sheepdog mailing list