commit | e5af323c9badd5dc09af7ccf9d45616ebffc623c | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <[email protected]> | Mon Jul 10 15:51:29 2017 -0700 |
committer | Linus Torvalds <[email protected]> | Mon Jul 10 16:32:34 2017 -0700 |
tree | da5f5087eb7c2eb2c5953bd34e5facc714de9d67 | |
parent | 3cc78125a081bb79eb38f3e9a585e5a81bb81cb1 [diff] |
bitmap: optimise bitmap_set and bitmap_clear of a single bit We have eight users calling bitmap_clear for a single bit and seventeen calling bitmap_set for a single bit. Rather than fix all of them to call __clear_bit or __set_bit, turn bitmap_clear and bitmap_set into inline functions and make this special case efficient. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox <[email protected]> Acked-by: Rasmus Villemoes <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>