lib/string.c: introduce memchr_inv()
authorAkinobu Mita <[email protected]>
Tue, 1 Nov 2011 00:08:07 +0000 (17:08 -0700)
committerLinus Torvalds <[email protected]>
Tue, 1 Nov 2011 00:30:47 +0000 (17:30 -0700)
commit798248206b59acc6e1238c778281419c041891a7
treeff8564431367b442b18bca4a0a9732e5799e2391
parent77311139f364d7f71fc9ba88f59fd90e60205007
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 <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Acked-by: Pekka Enberg <[email protected]>
Cc: Matt Mackall <[email protected]>
Acked-by: Joern Engel <[email protected]>
Cc: Marcin Slusarz <[email protected]>
Cc: Eric Dumazet <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/logfs/logfs.h
fs/logfs/super.c
include/linux/string.h
lib/string.c
mm/slub.c