]> 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>
Thu, 6 Oct 2011 05:59:40 +0000 (16:59 +1100)
commit40093392fa3437d46cacfdef254e71457c51fa68
treeb7680ef21a8b1a91afafe63c05a58ab167a539c8
parent9b09afac03158476d538895bfa1fc1267c5e448b
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