]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/string.c: introduce memchr_inv()
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 5 Oct 2011 00:42:56 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:32:04 +0000 (17:32 +1100)
commit0437e1695f753d9c38e8e9db98373c5aac475bca
treeb1f7342eff624214f5846ba2e6f19e73c9396da3
parent545a19a29d108ac42b0f69c4bd6cd3140a525fd3
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