]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/string.c: introduce memchr_inv()
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 24 Oct 2011 14:54:09 +0000 (01:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:40 +0000 (20:07 +1100)
commit66a385f8f8e79da1bf4b79dd4329e6be3bdbc35e
tree1a472373c92f3a13f05e8861ce132fadd460b045
parentf12599ef79c69aa156038ac8f7d730927116b610
lib/string.c: introduce memchr_inv()

memchr_inv() is mainly used to check whether the whole buffer is filled
with just a specified byte.

The function name and prototype are stolen from logfs and the
implementation is from SLUB.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Matt Mackall <mpm@selenic.com>
Acked-by: Joern Engel <joern@logfs.org>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/logfs/logfs.h
fs/logfs/super.c
include/linux/string.h
lib/string.c
mm/slub.c