]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Avoid modifying vmf.address in __collapse_huge_page_swapin()
authorWill Deacon <will@kernel.org>
Thu, 14 Jan 2021 15:33:49 +0000 (15:33 +0000)
committerWill Deacon <will@kernel.org>
Thu, 21 Jan 2021 12:50:18 +0000 (12:50 +0000)
commit201fa7f04063f2dd4cbcfdeac34e0b95c244a2a3
tree5ab56f029d86cad3cf7ecce48701bca0ad9f40c8
parent2fcc30433c46ca9e74d27810a4871659c4943093
mm: Avoid modifying vmf.address in __collapse_huge_page_swapin()

In preparation for const-ifying the anonymous struct field of
'struct vm_fault', rework __collapse_huge_page_swapin() to avoid
continuously updating vmf.address and instead populate a new
'struct vm_fault' on the stack for each page being processed.

Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Will Deacon <will@kernel.org>
mm/khugepaged.c