[Sheepdog] [PATCH v3] sheep: fix get_nr_copies()
MORITA Kazutaka
morita.kazutaka at gmail.com
Mon Apr 30 21:50:36 CEST 2012
At Tue, 1 May 2012 02:31:03 +0800,
Liu Yuan wrote:
>
> From: Liu Yuan <tailai.ly at taobao.com>
>
> We should never return anything greater than sys->nr_copies.
>
> - use min() to get the better readability
> - change sys->nr_copies as 'int' to stay in line with nr_zones
>
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
> sheep/group.c | 5 +----
> sheep/sheep_priv.h | 2 +-
> 2 files changed, 2 insertions(+), 5 deletions(-)
Applied, thanks!
Kazutaka
More information about the sheepdog
mailing list