slub-do-our-own-locking-via-slab_lock-and-slab_unlock-checkpatch-fixes
ERROR: do not use assignment in if condition
#627: FILE: mm/slub.c:2827:
+ if (!page->inuse && (state = slab_trylock(page))) {
total: 1 errors, 0 warnings, 611 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Please run checkpatch prior to sending patches
Seems nicer this way.
Should the `if (page->inuse)' test be marked unlikely()?
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>