From: Shaohua Li Date: Wed, 25 May 2011 00:13:35 +0000 (-0700) Subject: percpu_counter: change return value and add comments X-Git-Tag: v3.0-rc1~175 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c84598bbfa756b7d042da31aa4e198ae866a6c7d;p=pandora-kernel.git percpu_counter: change return value and add comments 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(). [akpm@linux-foundation.org: tweak comment] Signed-off-by: Shaohua Li Acked-by: Eric Dumazet Cc: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed