lkml.org 
[lkml]   [2023]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3 2/3] mm: Call arch_swap_restore() from unuse_pte()
    On Tue, May 16, 2023 at 07:21:12PM -0700, Peter Collingbourne wrote:
    > We would like to move away from requiring architectures to restore
    > metadata from swap in the set_pte_at() implementation, as this is not only
    > error-prone but adds complexity to the arch-specific code. This requires
    > us to call arch_swap_restore() before calling swap_free() whenever pages
    > are restored from swap. We are currently doing so everywhere except in
    > unuse_pte(); do so there as well.
    >
    > Signed-off-by: Peter Collingbourne <pcc@google.com>
    > Link: https://linux-review.googlesource.com/id/I68276653e612d64cde271ce1b5a99ae05d6bbc4f

    Acked-by: Catalin Marinas <catalin.marinas@arm.com>

    \
     
     \ /
      Last update: 2023-05-19 18:43    [W:3.492 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site