]> git.baikalelectronics.ru Git - kernel.git/commit
percpu_counter: unbreak __percpu_counter_add()
authorHugh Dickins <hughd@google.com>
Thu, 16 Jan 2014 23:26:48 +0000 (15:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Jan 2014 00:32:24 +0000 (11:32 +1100)
commit2afdc5da70e20701fd74c0ae6e4ead0642db9c4a
tree26d4c1e2915dc960f28abec72d024ddbf4c57924
parent4e78ebce2bbb26abcde51517d971f7c4b9756b29
percpu_counter: unbreak __percpu_counter_add()

Commit af0ee980b74f ("lib/percpu_counter.c: fix __percpu_counter_add()")
looked very plausible, but its arithmetic was badly wrong: obvious once
you see the fix, but maddening to get there from the weird tmpfs ENOSPCs

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Ming Lei <tom.leiming@gmail.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Shaohua Li <shli@fusionio.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Fan Du <fan.du@windriver.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/percpu_counter.c