]> git.baikalelectronics.ru Git - kernel.git/commit
mm: don't play games with pinned pages in clear_page_refs
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 10 Jan 2021 01:09:10 +0000 (17:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2021 18:51:26 +0000 (10:51 -0800)
commit49470f377200ab18a3f25d19c073cb25b87a88d9
tree1dfb123d7279ddfcbaa4a3a11df52cf51b0a0402
parentbc99ecafcd135388cfb590f805be510b9b5886e2
mm: don't play games with pinned pages in clear_page_refs

Turning a pinned page read-only breaks the pinning after COW.  Don't do it.

The whole "track page soft dirty" state doesn't work with pinned pages
anyway, since the page might be dirtied by the pinning entity without
ever being noticed in the page tables.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/task_mmu.c