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, 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 <>

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


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at