memchr_inv() is mainly used to check whether the whole buffer is filled
commit659a641c9e204105ca4603a5318f9978573f32b3
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 24 Aug 2011 23:47:06 +0000 (25 09:47 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Aug 2011 05:34:19 +0000 (25 15:34 +1000)
treea1609536593063d552805081c67cead7a94c4d9f
parent535d38a8820dd4273fa73071df24e2d0a9be2f31
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