Matthew Wilcox 2c6deb0152 bitmap: use memcmp optimisation in more situations
Commit 7dd968163f7c ("bitmap: bitmap_equal memcmp optimization") was
rather more restrictive than necessary; we can use memcmp() to implement
bitmap_equal() as long as the number of bits can be proved to be a
multiple of 8.  And architectures other than s390 may be able to make
good use of this optimisation.

[arnd@arndb.de: fix build: add a memcmp() declaration]
  Link: http://lkml.kernel.org/r/20170630153908.3439707-1-arnd@arndb.de
Link: http://lkml.kernel.org/r/20170628153221.11322-5-willy@infradead.org
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-07-10 16:32:34 -07:00
..
2017-07-08 15:51:57 -07:00
2017-07-10 16:32:34 -07:00
2017-06-18 23:12:36 -07:00
2017-07-04 14:34:51 -07:00
2017-07-04 14:34:51 -07:00
2017-07-04 14:34:51 -07:00
2017-07-04 14:34:51 -07:00
2017-07-08 12:36:50 -07:00
2017-05-08 17:15:13 -07:00
2017-06-18 22:53:20 -07:00
2017-06-21 18:08:41 +02:00