aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <[email protected]>2022-12-23 15:56:16 +0000
committerAndrew Morton <[email protected]>2023-01-19 01:12:50 +0000
commit1ef488edd6c4d447784710974f049628c2890481 (patch)
treea3577746e57294945403990ca3dd33a9a0986ee4 /fs/jbd2/commit.c
parentmm/userfaultfd: rely on vma->vm_page_prot in uffd_wp_range() (diff)
downloadkernel-1ef488edd6c4d447784710974f049628c2890481.tar.gz
kernel-1ef488edd6c4d447784710974f049628c2890481.zip
mm/mprotect: drop pgprot_t parameter from change_protection()
Being able to provide a custom protection opens the door for inconsistencies and BUGs: for example, accidentally allowing for more permissions than desired by other mechanisms (e.g., softdirty tracking). vma->vm_page_prot should be the single source of truth. Only PROT_NUMA is special: there is no way we can erroneously allow for more permissions when removing all permissions. Special-case using the MM_CP_PROT_NUMA flag. [[email protected]: PAGE_NONE might not be defined without CONFIG_NUMA_BALANCING] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: David Hildenbrand <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Nadav Amit <[email protected]> Cc: Peter Xu <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions