From: Nick Piggin Date: Mon, 14 Nov 2005 00:07:25 +0000 (-0800) Subject: [PATCH] atomic: inc_not_zero X-Git-Tag: v2.6.15-rc2~158 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8426e1f6af0fd7f44d040af7263750c5a52f3cc3;p=pandora-kernel.git [PATCH] atomic: inc_not_zero Introduce an atomic_inc_not_zero operation. Make this a special case of atomic_add_unless because lockless pagecache actually wants atomic_inc_not_negativeone due to its offset refcount. Signed-off-by: Nick Piggin Cc: "Paul E. McKenney" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed