[sheepdog] [PATCH] collie/farm: fixed wrong way of calculating nr_vmstate_obejct

Kai Zhang kyle at zelin.io
Tue Jun 25 08:43:05 CEST 2013


On Jun 25, 2013, at 2:37 PM, Liu Yuan <namei.unix at gmail.com> wrote:

> How about following? 
> 	nr_vmstate_object = i->vm_state_size ?
> 	                    i->vm_state_size / SD_DATA_OBJ_SIZE + 1 : 0;

This will fail if i->vm_state_size is equal to SD_DATA_OBJ_SIZE * n

Thanks,
Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130625/fa6f5aec/attachment-0004.html>


More information about the sheepdog mailing list