[PATCH v2 4/4] bitmap: Use memcmp optimisation in more situations

2017-06-28 Thread Matthew Wilcox
From: Matthew Wilcox Commit 7dd968163f ("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

[PATCH v2 4/4] bitmap: Use memcmp optimisation in more situations

2017-06-28 Thread Matthew Wilcox
From: Matthew Wilcox Commit 7dd968163f ("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