diff options
author | Will Deacon <will@kernel.org> | 2021-01-20 17:34:23 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-01-21 15:49:54 +0300 |
commit | 742d33729a0df11c9d8d4625dbf21dd20cdefd44 (patch) | |
tree | 2c35efe4ddd3c0ea527bddf2bc767122d6115171 /COPYING | |
parent | 0388f9c7433024ccf3909b3404a745100f006a17 (diff) | |
download | linux-742d33729a0df11c9d8d4625dbf21dd20cdefd44.tar.xz |
mm: Move immutable fields of 'struct vm_fault' into anonymous struct
'struct vm_fault' contains both information about the fault being
serviced alongside mutable fields contributing to the state of the
fault-handling logic. Unfortunately, the distinction between the two is
not clear-cut, and a number of callers end up manipulating the structure
temporarily before restoring it when returning.
Try to clean this up by moving the immutable fault information into an
anonymous struct, which will later be marked as 'const'. Ideally, the
'flags' field would be part of the new structure too, but it seems as
though the ->page_mkwrite() path is not ready for this yet.
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/CAHk-=whYs9XsO88iqJzN6NC=D-dp2m0oYXuOoZ=eWnvv=5OA+w@mail.gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions