Re: [patch v3 1/3] percpu_counter: change return value and addcomments

From: Tejun Heo
Date: Thu Apr 14 2011 - 23:41:44 EST


On Thu, Apr 14, 2011 at 10:04:48AM +0800, shaohua.li@xxxxxxxxx wrote:
> the percpu_counter_*_positive() API in UP case doesn't check if return value is
> positive. Add comments to explain why we don't.
> Also if count < 0, returns 0 instead of 1 for *read_positive().
>
> Signed-off-by: Shaohua Li <shaohua.li@xxxxxxxxx>

Applied to percpu#for-2.6.40 w/ Eric's Acked-by added.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/