diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2017-07-10 15:51:32 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-10 16:32:34 -0700 |
commit | 2a98dc028f911a7c59c87d11d4eed6626be1605b (patch) | |
tree | 6ef30a1615e1a374a442c18d1a92015264d32b0f /lib/kstrtox.c | |
parent | e5af323c9badd5dc09af7ccf9d45616ebffc623c (diff) | |
download | linux-2a98dc028f911a7c59c87d11d4eed6626be1605b.tar.gz linux-2a98dc028f911a7c59c87d11d4eed6626be1605b.tar.bz2 linux-2a98dc028f911a7c59c87d11d4eed6626be1605b.zip |
include/linux/bitmap.h: turn bitmap_set and bitmap_clear into memset when possible
Several callers have constant 'start' and an 'nbits' that is a multiple
of 8, so we can turn them into calls to memset. We don't need the
entirety of 'start' and 'nbits' to be constant, we just need to know
whether they're divisible by 8.
Link: http://lkml.kernel.org/r/20170628153221.11322-4-willy@infradead.org
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/kstrtox.c')
0 files changed, 0 insertions, 0 deletions