]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/string.c: introduce memchr_inv()
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 28 Sep 2011 00:50:09 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:22 +0000 (14:53 +1000)
commita03db2fd6b726ff30c9bf6ef4f476bab9cfb8cca
treeb4f918360f3bea1f49f50342df6e2d34e7f9054c
parentcb84d237527782096d08a218d21190fd2ec03e25
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 <>
fs/logfs/logfs.h
fs/logfs/super.c
include/linux/string.h
lib/string.c
mm/slub.c