]> git.baikalelectronics.ru Git - kernel.git/commit
mm/frontswap.c: use non-atomic '__set_bit()' when possible
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 14 Jan 2022 22:05:26 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:26 +0000 (16:30 +0200)
commit597e180650f18fba4b83210674e9cae13ee7eb17
tree76b8b02f02479498f1a65d372bd944cb623aa20e
parent5a30266855220b37f8305d1759dec7f483321405
mm/frontswap.c: use non-atomic '__set_bit()' when possible

The 'a' and 'b' bitmaps are local to this function, so no concurrent
access can occur.  So the non-atomic '__set_bit()' can be used to save a
few cycles.

Link: https://lkml.kernel.org/r/e52476da5cee57151745c5c3c934a69798dc6fa4.1638132190.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/frontswap.c