[sheepdog] [PATCH v2] sockfd cache: grow fds count dynamically

Liu Yuan namei.unix at gmail.com
Tue Jul 24 03:44:32 CEST 2012


On 07/23/2012 06:18 PM, MORITA Kazutaka wrote:
> Isn't it easier to understand to write directly
> 
>     new->fds = xzalloc(sizeof(struct sockfd_cache_fd) * fds_count)
> 
> than using a macro?

This is used to get the new_size too, I think this easy macro is okay.

Thanks,
Yuan



More information about the sheepdog mailing list