]> git.neil.brown.name Git - history.git/commit
[PATCH] Simplify last lib/idr.c change
authorUlrich Drepper <drepper@redhat.com>
Tue, 19 Oct 2004 01:15:27 +0000 (18:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:15:27 +0000 (18:15 -0700)
commit48e5872368b1ada27804e5c4c15fbeea9eb3c284
treef0d447de057ae2f4f628406f68b1b0dc59359eca
parent1ce7772b18bca39ab7d8190c5054c9e0b0d41ea4
[PATCH] Simplify last lib/idr.c change

The last change to alloc_layer in lib/idr.c unnecessarily complicates
the code and depending on the definition of spin_unlock will cause worse
code to be generated than necessary.  The following patch should improve
the situation.

Signed-off-by: Ulrich Drepper <drepper@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/idr.c