]> git.baikalelectronics.ru Git - kernel.git/commit
mm: do_wp_page() simplification
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 21 Aug 2020 23:49:55 +0000 (19:49 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2020 16:25:20 +0000 (09:25 -0700)
commita103ba5cc916e3fb9aab5b309380d26e59e9979e
tree5a2d6fc65cf0a55894388444514e37daa6dd20c8
parentc9384438eae575d67eebc79b5dc3d28648b56ac3
mm: do_wp_page() simplification

How about we just make sure we're the only possible valid user fo the
page before we bother to reuse it?

Simplify, simplify, simplify.

And get rid of the nasty serialization on the page lock at the same time.

[peterx: add subject prefix]

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c