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)
commit09854ba94c6aad7886996bfbee2530b3d8a7f4f4
tree5a2d6fc65cf0a55894388444514e37daa6dd20c8
parentbcf876870b95592b52519ed4aafcf9d95999bc9c
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