1. 21 Aug, 2023 40 commits
    • Xiu Jianfeng's avatar
      writeback: remove unused delaration of bdi_async_bio_wq · 1b6754fe
      Xiu Jianfeng authored
      It seems it was introduced by commit d3f77dfd ("blkcg: implement
      REQ_CGROUP_PUNT") unintentionally, but the definition does not exist,
      remove it.
      
      Link: https://lkml.kernel.org/r/20230812110128.482650-1-xiujianfeng@huaweicloud.comSigned-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
      Acked-by: default avatarTejun Heo <tj@kernel.org>
      Cc: Stefan Roesch <shr@devkernel.io>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      1b6754fe
    • Hugh Dickins's avatar
      mm,thp: fix smaps THPeligible output alignment · daa60ae6
      Hugh Dickins authored
      Extract from current /proc/self/smaps output:
      
      Swap:                  0 kB
      SwapPss:               0 kB
      Locked:                0 kB
      THPeligible:    0
      ProtectionKey:         0
      
      That's not the alignment shown in Documentation/filesystems/proc.rst: it's
      an ugly artifact from missing out the %8 other fields are using; but
      there's even one selftest which expects it to look that way.  Hoping no
      other smaps parsers depend on THPeligible to look so ugly, fix these.
      
      Link: https://lkml.kernel.org/r/cfb81f7a-f448-5bc2-b0e1-8136fcd1dd8c@google.comSigned-off-by: default avatarHugh Dickins <hughd@google.com>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      daa60ae6
    • Hugh Dickins's avatar
      mm,thp: fix nodeN/meminfo output alignment · 4b5b7850
      Hugh Dickins authored
      Add one more space to FileHugePages and FilePmdMapped, so the output is
      aligned with other rows in /sys/devices/system/node/nodeN/meminfo.
      
      Link: https://lkml.kernel.org/r/be861b50-a790-e041-bcb0-2a987dcfd1a@google.comSigned-off-by: default avatarHugh Dickins <hughd@google.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4b5b7850
    • Hugh Dickins's avatar
      mm,thp: no space after colon in Mem-Info fields · 8dbbc493
      Hugh Dickins authored
      Patch series "mm,thp: fix sloppy text output".
      
      Three independent trivial patches, fixing sloppy text output which has
      annoyed me; but might risk surprising a parser, so any can be dropped.
      
      
      This patch (of 3):
      
      The SysRq-m or OOM Mem-Info dmesg showed (long lines containing) ... 
      shmem:NkB shmem_thp: NkB shmem_pmdmapped: NkB anon_thp: NkB ...
      
      Delete the space after the colon after shmem_thp, shmem_pmdmapped,
      anon_thp: as the shmem example shows, no other fields have a space after
      the colon in this output.
      
      Link: https://lkml.kernel.org/r/dc264fd6-40bb-6510-db36-9340a5f01d94@google.com
      Link: https://lkml.kernel.org/r/c1edd7da-5493-c542-6feb-92452b4dab3b@google.comSigned-off-by: default avatarHugh Dickins <hughd@google.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      8dbbc493
    • Hugh Dickins's avatar
      riscv: include asm/cacheflush.h in asm/hugetlb.h · 33a9fb09
      Hugh Dickins authored
      PG_dcache_clean is used in asm/hugetlb.h but defined in asm/cacheflush.h:
      builds rely on an accident of that being included via linux/mempolicy.h,
      but better include it directly (like arch/sh/include/asm/hugetlb.h does).
      
      Link: https://lkml.kernel.org/r/84bd3b96-8dbe-51b1-d7d1-6e4f9d8937d8@google.comSigned-off-by: default avatarHugh Dickins <hughd@google.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Mike Kravetz <mike.kravetz@oracle.com>
      Cc: Palmer Dabbelt <palmer@dabbelt.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Will Deacon <will@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      33a9fb09
    • Hugh Dickins's avatar
      arm64: include asm/cacheflush.h in asm/hugetlb.h · 1de8c835
      Hugh Dickins authored
      PG_dcache_clean is used in asm/hugetlb.h but defined in asm/cacheflush.h:
      builds rely on an accident of that being included via linux/mempolicy.h,
      but better include it directly (like arch/sh/include/asm/hugetlb.h does).
      
      Link: https://lkml.kernel.org/r/bd77cc1b-e83b-f276-9e27-c19e7c9119aa@google.comSigned-off-by: default avatarHugh Dickins <hughd@google.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Mike Kravetz <mike.kravetz@oracle.com>
      Cc: Palmer Dabbelt <palmer@dabbelt.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Will Deacon <will@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      1de8c835
    • Hugh Dickins's avatar
      arm: include asm/cacheflush.h in asm/hugetlb.h · 889690bc
      Hugh Dickins authored
      Patch series "arch: include asm/cacheflush.h in asm/hugetlb.h".
      
      Three architectures are using PG_dcache_clean in their asm/hugetlb.h,
      but relying on accident to include the asm/cacheflush.h which defines it.
      
      
      This patch (of 3):
      
      PG_dcache_clean is used in asm/hugetlb.h but defined in asm/cacheflush.h:
      builds rely on an accident of that being included via linux/mempolicy.h,
      but better include it directly (like arch/sh/include/asm/hugetlb.h does).
      
      Link: https://lkml.kernel.org/r/6d2acfa4-7f44-d3b4-b0a8-5495c5985e4c@google.com
      Link: https://lkml.kernel.org/r/4b055d0-7b2e-72bf-9b9d-8f3f1cd312d0@google.comSigned-off-by: default avatarHugh Dickins <hughd@google.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Mike Kravetz <mike.kravetz@oracle.com>
      Cc: Palmer Dabbelt <palmer@dabbelt.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Will Deacon <will@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      889690bc
    • Aleksa Sarai's avatar
      selftests: improve vm.memfd_noexec sysctl tests · 6469b66e
      Aleksa Sarai authored
      This adds proper tests for the nesting functionality of vm.memfd_noexec as
      well as some minor cleanups to spawn_*_thread().
      
      Link: https://lkml.kernel.org/r/20230814-memfd-vm-noexec-uapi-fixes-v2-5-7ff9e3e10ba6@cyphar.comSigned-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Daniel Verkamp <dverkamp@chromium.org>
      Cc: Dominique Martinet <asmadeus@codewreck.org>
      Cc: Jeff Xu <jeffxu@google.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Shuah Khan <shuah@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      6469b66e
    • Aleksa Sarai's avatar
      memfd: replace ratcheting feature from vm.memfd_noexec with hierarchy · 9876cfe8
      Aleksa Sarai authored
      This sysctl has the very unusual behaviour of not allowing any user (even
      CAP_SYS_ADMIN) to reduce the restriction setting, meaning that if you were
      to set this sysctl to a more restrictive option in the host pidns you
      would need to reboot your machine in order to reset it.
      
      The justification given in [1] is that this is a security feature and thus
      it should not be possible to disable.  Aside from the fact that we have
      plenty of security-related sysctls that can be disabled after being
      enabled (fs.protected_symlinks for instance), the protection provided by
      the sysctl is to stop users from being able to create a binary and then
      execute it.  A user with CAP_SYS_ADMIN can trivially do this without
      memfd_create(2):
      
        % cat mount-memfd.c
        #include <fcntl.h>
        #include <string.h>
        #include <stdio.h>
        #include <stdlib.h>
        #include <unistd.h>
        #include <linux/mount.h>
      
        #define SHELLCODE "#!/bin/echo this file was executed from this totally private tmpfs:"
      
        int main(void)
        {
        	int fsfd = fsopen("tmpfs", FSOPEN_CLOEXEC);
        	assert(fsfd >= 0);
        	assert(!fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 2));
      
        	int dfd = fsmount(fsfd, FSMOUNT_CLOEXEC, 0);
        	assert(dfd >= 0);
      
        	int execfd = openat(dfd, "exe", O_CREAT | O_RDWR | O_CLOEXEC, 0782);
        	assert(execfd >= 0);
        	assert(write(execfd, SHELLCODE, strlen(SHELLCODE)) == strlen(SHELLCODE));
        	assert(!close(execfd));
      
        	char *execpath = NULL;
        	char *argv[] = { "bad-exe", NULL }, *envp[] = { NULL };
        	execfd = openat(dfd, "exe", O_PATH | O_CLOEXEC);
        	assert(execfd >= 0);
        	assert(asprintf(&execpath, "/proc/self/fd/%d", execfd) > 0);
        	assert(!execve(execpath, argv, envp));
        }
        % ./mount-memfd
        this file was executed from this totally private tmpfs: /proc/self/fd/5
        %
      
      Given that it is possible for CAP_SYS_ADMIN users to create executable
      binaries without memfd_create(2) and without touching the host filesystem
      (not to mention the many other things a CAP_SYS_ADMIN process would be
      able to do that would be equivalent or worse), it seems strange to cause a
      fair amount of headache to admins when there doesn't appear to be an
      actual security benefit to blocking this.  There appear to be concerns
      about confused-deputy-esque attacks[2] but a confused deputy that can
      write to arbitrary sysctls is a bigger security issue than executable
      memfds.
      
      /* New API */
      
      The primary requirement from the original author appears to be more based
      on the need to be able to restrict an entire system in a hierarchical
      manner[3], such that child namespaces cannot re-enable executable memfds.
      
      So, implement that behaviour explicitly -- the vm.memfd_noexec scope is
      evaluated up the pidns tree to &init_pid_ns and you have the most
      restrictive value applied to you.  The new lower limit you can set
      vm.memfd_noexec is whatever limit applies to your parent.
      
      Note that a pidns will inherit a copy of the parent pidns's effective
      vm.memfd_noexec setting at unshare() time.  This matches the existing
      behaviour, and it also ensures that a pidns will never have its
      vm.memfd_noexec setting *lowered* behind its back (but it will be raised
      if the parent raises theirs).
      
      /* Backwards Compatibility */
      
      As the previous version of the sysctl didn't allow you to lower the
      setting at all, there are no backwards compatibility issues with this
      aspect of the change.
      
      However it should be noted that now that the setting is completely
      hierarchical.  Previously, a cloned pidns would just copy the current
      pidns setting, meaning that if the parent's vm.memfd_noexec was changed it
      wouldn't propoagate to existing pid namespaces.  Now, the restriction
      applies recursively.  This is a uAPI change, however:
      
       * The sysctl is very new, having been merged in 6.3.
       * Several aspects of the sysctl were broken up until this patchset and
         the other patchset by Jeff Xu last month.
      
      And thus it seems incredibly unlikely that any real users would run into
      this issue. In the worst case, if this causes userspace isues we could
      make it so that modifying the setting follows the hierarchical rules but
      the restriction checking uses the cached copy.
      
      [1]: https://lore.kernel.org/CABi2SkWnAgHK1i6iqSqPMYuNEhtHBkO8jUuCvmG3RmUB5TKHJw@mail.gmail.com/
      [2]: https://lore.kernel.org/CALmYWFs_dNCzw_pW1yRAo4bGCPEtykroEQaowNULp7svwMLjOg@mail.gmail.com/
      [3]: https://lore.kernel.org/CALmYWFuahdUF7cT4cm7_TGLqPanuHXJ-hVSfZt7vpTnc18DPrw@mail.gmail.com/
      
      Link: https://lkml.kernel.org/r/20230814-memfd-vm-noexec-uapi-fixes-v2-4-7ff9e3e10ba6@cyphar.com
      Fixes: 105ff533 ("mm/memfd: add MFD_NOEXEC_SEAL and MFD_EXEC")
      Signed-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
      Cc: Dominique Martinet <asmadeus@codewreck.org>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Daniel Verkamp <dverkamp@chromium.org>
      Cc: Jeff Xu <jeffxu@google.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9876cfe8
    • Aleksa Sarai's avatar
      memfd: improve userspace warnings for missing exec-related flags · 434ed335
      Aleksa Sarai authored
      In order to incentivise userspace to switch to passing MFD_EXEC and
      MFD_NOEXEC_SEAL, we need to provide a warning on each attempt to call
      memfd_create() without the new flags.  pr_warn_once() is not useful
      because on most systems the one warning is burned up during the boot
      process (on my system, systemd does this within the first second of boot)
      and thus userspace will in practice never see the warnings to push them to
      switch to the new flags.
      
      The original patchset[1] used pr_warn_ratelimited(), however there were
      concerns about the degree of spam in the kernel log[2,3].  The resulting
      inability to detect every case was flagged as an issue at the time[4].
      
      While we could come up with an alternative rate-limiting scheme such as
      only outputting the message if vm.memfd_noexec has been modified, or only
      outputting the message once for a given task, these alternatives have
      downsides that don't make sense given how low-stakes a single kernel
      warning message is.  Switching to pr_info_ratelimited() instead should be
      fine -- it's possible some monitoring tool will be unhappy with a stream
      of warning-level messages but there's already plenty of info-level message
      spam in dmesg.
      
      [1]: https://lore.kernel.org/20221215001205.51969-4-jeffxu@google.com/
      [2]: https://lore.kernel.org/202212161233.85C9783FB@keescook/
      [3]: https://lore.kernel.org/Y5yS8wCnuYGLHMj4@x1n/
      [4]: https://lore.kernel.org/f185bb42-b29c-977e-312e-3349eea15383@linuxfoundation.org/
      
      Link: https://lkml.kernel.org/r/20230814-memfd-vm-noexec-uapi-fixes-v2-3-7ff9e3e10ba6@cyphar.com
      Fixes: 105ff533 ("mm/memfd: add MFD_NOEXEC_SEAL and MFD_EXEC")
      Signed-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Daniel Verkamp <dverkamp@chromium.org>
      Cc: Dominique Martinet <asmadeus@codewreck.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      434ed335
    • Aleksa Sarai's avatar
      memfd: do not -EACCES old memfd_create() users with vm.memfd_noexec=2 · 202e1422
      Aleksa Sarai authored
      Given the difficulty of auditing all of userspace to figure out whether
      every memfd_create() user has switched to passing MFD_EXEC and
      MFD_NOEXEC_SEAL flags, it seems far less distruptive to make it possible
      for older programs that don't make use of executable memfds to run under
      vm.memfd_noexec=2.  Otherwise, a small dependency change can result in
      spurious errors.  For programs that don't use executable memfds, passing
      MFD_NOEXEC_SEAL is functionally a no-op and thus having the same
      
      In addition, every failure under vm.memfd_noexec=2 needs to print to the
      kernel log so that userspace can figure out where the error came from. 
      The concerns about pr_warn_ratelimited() spam that caused the switch to
      pr_warn_once()[1,2] do not apply to the vm.memfd_noexec=2 case.
      
      This is a user-visible API change, but as it allows programs to do
      something that would be blocked before, and the sysctl itself was broken
      and recently released, it seems unlikely this will cause any issues.
      
      [1]: https://lore.kernel.org/Y5yS8wCnuYGLHMj4@x1n/
      [2]: https://lore.kernel.org/202212161233.85C9783FB@keescook/
      
      Link: https://lkml.kernel.org/r/20230814-memfd-vm-noexec-uapi-fixes-v2-2-7ff9e3e10ba6@cyphar.com
      Fixes: 105ff533 ("mm/memfd: add MFD_NOEXEC_SEAL and MFD_EXEC")
      Signed-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
      Cc: Dominique Martinet <asmadeus@codewreck.org>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Daniel Verkamp <dverkamp@chromium.org>
      Cc: Jeff Xu <jeffxu@google.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      202e1422
    • Aleksa Sarai's avatar
      selftests: memfd: error out test process when child test fails · 99f34659
      Aleksa Sarai authored
      Patch series "memfd: cleanups for vm.memfd_noexec", v2.
      
      The most critical issue with vm.memfd_noexec=2 (the fact that passing
      MFD_EXEC would bypass it entirely[1]) has been fixed in Andrew's
      tree[2], but there are still some outstanding issues that need to be
      addressed:
      
       * vm.memfd_noexec=2 shouldn't reject old-style memfd_create(2) syscalls
         because it will make it far to difficult to ever migrate. Instead it
         should imply MFD_EXEC.
      
       * The dmesg warnings are pr_warn_once(), which on most systems means
         that they will be used up by systemd or some other boot process and
         userspace developers will never see it.
      
         - For the !(flags & (MFD_EXEC | MFD_NOEXEC_SEAL)) case, outputting a
           rate-limited message to the kernel log is necessary to tell
           userspace that they should add the new flags.
      
           Arguably the most ideal way to deal with the spam concern[3,4]
           while still prompting userspace to switch to the new flags would be
           to only log the warning once per task or something similar.
           However, adding something to task_struct for tracking this would be
           needless bloat for a single pr_warn_ratelimited().
      
           So just switch to pr_info_ratelimited() to avoid spamming the log
           with something that isn't a real warning. There's lots of
           info-level stuff in dmesg, it seems really unlikely that this
           should be an actual problem. Most programs are already switching to
           the new flags anyway.
      
         - For the vm.memfd_noexec=2 case, we need to log a warning for every
           failure because otherwise userspace will have no idea why their
           previously working program started returning -EACCES (previously
           -EINVAL) from memfd_create(2). pr_warn_once() is simply wrong here.
      
       * The racheting mechanism for vm.memfd_noexec makes it incredibly
         unappealing for most users to enable the sysctl because enabling it
         on &init_pid_ns means you need a system reboot to unset it. Given the
         actual security threat being protected against, CAP_SYS_ADMIN users
         being restricted in this way makes little sense.
      
         The argument for this ratcheting by the original author was that it
         allows you to have a hierarchical setting that cannot be unset by
         child pidnses, but this is not accurate -- changing the parent
         pidns's vm.memfd_noexec setting to be more restrictive didn't affect
         children.
      
         Instead, switch the vm.memfd_noexec sysctl to be properly
         hierarchical and allow CAP_SYS_ADMIN users (in the pidns's owning
         userns) to lower the setting as long as it is not lower than the
         parent's effective setting. This change also makes it so that
         changing a parent pidns's vm.memfd_noexec will affect all
         descendants, providing a properly hierarchical setting. The
         performance impact of this is incredibly minimal since the maximum
         depth of pidns is 32 and it is only checked during memfd_create(2)
         and unshare(CLONE_NEWPID).
      
       * The memfd selftests would not exit with a non-zero error code when
         certain tests that ran in a forked process (specifically the ones
         related to MFD_EXEC and MFD_NOEXEC_SEAL) failed.
      
      [1]: https://lore.kernel.org/all/ZJwcsU0vI-nzgOB_@codewreck.org/
      [2]: https://lore.kernel.org/all/20230705063315.3680666-1-jeffxu@google.com/
      [3]: https://lore.kernel.org/Y5yS8wCnuYGLHMj4@x1n/
      [4]: https://lore.kernel.org/f185bb42-b29c-977e-312e-3349eea15383@linuxfoundation.org/
      
      
      This patch (of 5):
      
      Before this change, a test runner using this self test would see a return
      code of 0 when the tests using a child process (namely the MFD_NOEXEC_SEAL
      and MFD_EXEC tests) failed, masking test failures.
      
      Link: https://lkml.kernel.org/r/20230814-memfd-vm-noexec-uapi-fixes-v2-0-7ff9e3e10ba6@cyphar.com
      Link: https://lkml.kernel.org/r/20230814-memfd-vm-noexec-uapi-fixes-v2-1-7ff9e3e10ba6@cyphar.com
      Fixes: 11f75a01 ("selftests/memfd: add tests for MFD_NOEXEC_SEAL MFD_EXEC")
      Signed-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
      Reviewed-by: default avatarJeff Xu <jeffxu@google.com>
      Cc: "Christian Brauner (Microsoft)" <brauner@kernel.org>
      Cc: Daniel Verkamp <dverkamp@chromium.org>
      Cc: Dominique Martinet <asmadeus@codewreck.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Shuah Khan <shuah@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      99f34659
    • Rong Tao's avatar
      selftests/mm: fix uffd-stress help information · 708879a1
      Rong Tao authored
      commit 686a8bb7("selftests/mm: split uffd tests into uffd-stress and
      uffd-unit-tests") split uffd tests into uffd-stress and uffd-unit-tests,
      obviously we need to modify the help information synchronously.
      
      Also modify code indentation.
      
      Link: https://lkml.kernel.org/r/tencent_64FC724AC5F05568F41BD1C68058E83CEB05@qq.comSigned-off-by: default avatarRong Tao <rongtao@cestc.cn>
      Cc: Shuah Khan <shuah@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      708879a1
    • Vishal Moola (Oracle)'s avatar
      mm: remove pgtable_{pmd, pte}_page_{ctor, dtor}() wrappers · 9a4bbd8d
      Vishal Moola (Oracle) authored
      These functions are no longer necessary.  Remove them and cleanup
      Documentation referencing them.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-32-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9a4bbd8d
    • Vishal Moola (Oracle)'s avatar
      um: convert {pmd, pte}_free_tlb() to use ptdescs · da9aefca
      Vishal Moola (Oracle) authored
      Part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents.  Also cleans up some spacing issues.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-31-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      da9aefca
    • Vishal Moola (Oracle)'s avatar
      sparc: convert pgtable_pte_page_{ctor, dtor}() to ptdesc equivalents · 222107e1
      Vishal Moola (Oracle) authored
      Part of the conversions to replace pgtable pte constructor/destructors
      with ptdesc equivalents.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-30-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      222107e1
    • Vishal Moola (Oracle)'s avatar
      sparc64: convert various functions to use ptdescs · b3311d70
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-29-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      b3311d70
    • Vishal Moola (Oracle)'s avatar
      sh: convert pte_free_tlb() to use ptdescs · bb3be388
      Vishal Moola (Oracle) authored
      Part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents.  Also cleans up some spacing issues.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-28-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Acked-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      bb3be388
    • Vishal Moola (Oracle)'s avatar
      riscv: convert alloc_{pmd, pte}_late() to use ptdescs · 380f2c1a
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      Some of the functions use the *get*page*() helper functions.  Convert
      these to use pagetable_alloc() and ptdesc_address() instead to help
      standardize page tables further.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-27-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      380f2c1a
    • Vishal Moola (Oracle)'s avatar
      openrisc: convert __pte_free_tlb() to use ptdescs · 5823b9fe
      Vishal Moola (Oracle) authored
      Part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-26-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      5823b9fe
    • Vishal Moola (Oracle)'s avatar
      nios2: convert __pte_free_tlb() to use ptdescs · 61139e9a
      Vishal Moola (Oracle) authored
      Part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-25-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Acked-by: default avatarDinh Nguyen <dinguyen@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      61139e9a
    • Vishal Moola (Oracle)'s avatar
      mips: convert various functions to use ptdescs · 3e14fb19
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      Some of the functions use the *get*page*() helper functions.  Convert
      these to use pagetable_alloc() and ptdesc_address() instead to help
      standardize page tables further.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-24-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      3e14fb19
    • Vishal Moola (Oracle)'s avatar
      m68k: convert various functions to use ptdescs · bff28e6b
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      Some of the functions use the *get*page*() helper functions.  Convert
      these to use pagetable_alloc() and ptdesc_address() instead to help
      standardize page tables further.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-23-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      bff28e6b
    • Vishal Moola (Oracle)'s avatar
      loongarch: convert various functions to use ptdescs · 38273979
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      Some of the functions use the *get*page*() helper functions.  Convert
      these to use pagetable_alloc() and ptdesc_address() instead to help
      standardize page tables further.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-22-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      38273979
    • Vishal Moola (Oracle)'s avatar
      hexagon: convert __pte_free_tlb() to use ptdescs · b45a12c0
      Vishal Moola (Oracle) authored
      Part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-21-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      b45a12c0
    • Vishal Moola (Oracle)'s avatar
      csky: convert __pte_free_tlb() to use ptdescs · e6473339
      Vishal Moola (Oracle) authored
      Part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-20-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarGuo Ren <guoren@kernel.org>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      e6473339
    • Vishal Moola (Oracle)'s avatar
      arm64: convert various functions to use ptdescs · 11b4fa8b
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-19-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      11b4fa8b
    • Vishal Moola (Oracle)'s avatar
      arm: convert various functions to use ptdescs · 358d1c39
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      late_alloc() also uses the __get_free_pages() helper function.  Convert
      this to use pagetable_alloc() and ptdesc_address() instead to help
      standardize page tables further.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-18-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      358d1c39
    • Vishal Moola (Oracle)'s avatar
      pgalloc: convert various functions to use ptdescs · c787ae5b
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      Some of the functions use the *get*page*() helper functions.  Convert
      these to use pagetable_alloc() and ptdesc_address() instead to help
      standardize page tables further.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-17-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Mike Rapoport (IBM) <rppt@kernel.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      c787ae5b
    • Vishal Moola (Oracle)'s avatar
      mm: remove page table members from struct page · 4f054c28
      Vishal Moola (Oracle) authored
      The page table members are now split out into their own ptdesc struct. 
      Remove them from struct page.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-16-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4f054c28
    • Vishal Moola (Oracle)'s avatar
      s390: convert various pgalloc functions to use ptdescs · 6326c26c
      Vishal Moola (Oracle) authored
      As part of the conversions to replace pgtable constructor/destructors with
      ptdesc equivalents, convert various page table functions to use ptdescs.
      
      Some of the functions use the *get*page*() helper functions.  Convert
      these to use pagetable_alloc() and ptdesc_address() instead to help
      standardize page tables further.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-15-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      6326c26c
    • Vishal Moola (Oracle)'s avatar
      x86: convert various functions to use ptdescs · f92c494f
      Vishal Moola (Oracle) authored
      In order to split struct ptdesc from struct page, convert various
      functions to use ptdescs.
      
      Some of the functions use the *get*page*() helper functions.  Convert
      these to use pagetable_alloc() and ptdesc_address() instead to help
      standardize page tables further.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-14-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Mike Rapoport (IBM) <rppt@kernel.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      f92c494f
    • Vishal Moola (Oracle)'s avatar
      powerpc: convert various functions to use ptdescs · 4eaca961
      Vishal Moola (Oracle) authored
      In order to split struct ptdesc from struct page, convert various
      functions to use ptdescs.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-13-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4eaca961
    • Vishal Moola (Oracle)'s avatar
      mm: create ptdesc equivalents for pgtable_{pte,pmd}_page_{ctor,dtor} · 7e11dca1
      Vishal Moola (Oracle) authored
      Create pagetable_pte_ctor(), pagetable_pmd_ctor(), pagetable_pte_dtor(),
      and pagetable_pmd_dtor() and make the original pgtable
      constructor/destructors wrappers.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-12-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      7e11dca1
    • Vishal Moola (Oracle)'s avatar
      mm: convert ptlock_free() to use ptdescs · 6ed1b8a0
      Vishal Moola (Oracle) authored
      This removes some direct accesses to struct page, working towards
      splitting out struct ptdesc from struct page.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-11-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      6ed1b8a0
    • Vishal Moola (Oracle)'s avatar
      mm: convert pmd_ptlock_free() to use ptdescs · 7e5f42ae
      Vishal Moola (Oracle) authored
      This removes some direct accesses to struct page, working towards
      splitting out struct ptdesc from struct page.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-10-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      7e5f42ae
    • Vishal Moola (Oracle)'s avatar
      mm: convert ptlock_init() to use ptdescs · 75b25d49
      Vishal Moola (Oracle) authored
      This removes some direct accesses to struct page, working towards
      splitting out struct ptdesc from struct page.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-9-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      75b25d49
    • Vishal Moola (Oracle)'s avatar
      mm: convert pmd_ptlock_init() to use ptdescs · edbaefe5
      Vishal Moola (Oracle) authored
      This removes some direct accesses to struct page, working towards
      splitting out struct ptdesc from struct page.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-8-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      edbaefe5
    • Vishal Moola (Oracle)'s avatar
      mm: convert ptlock_ptr() to use ptdescs · 1865484a
      Vishal Moola (Oracle) authored
      This removes some direct accesses to struct page, working towards
      splitting out struct ptdesc from struct page.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-7-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      1865484a
    • Vishal Moola (Oracle)'s avatar
      mm: convert ptlock_alloc() to use ptdescs · f5ecca06
      Vishal Moola (Oracle) authored
      This removes some direct accesses to struct page, working towards
      splitting out struct ptdesc from struct page.
      
      Link: https://lkml.kernel.org/r/20230807230513.102486-6-vishal.moola@gmail.comSigned-off-by: default avatarVishal Moola (Oracle) <vishal.moola@gmail.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
      Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Huacai Chen <chenhuacai@kernel.org>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      f5ecca06