lkml.org 
[lkml]   [2023]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v2 25/33] mm: add FAULT_FLAG_VMA_LOCK flag
    From
    Add a new flag to distinguish page faults handled under protection of
    per-vma lock.

    Signed-off-by: Suren Baghdasaryan <surenb@google.com>
    Reviewed-by: Laurent Dufour <laurent.dufour@fr.ibm.com>
    ---
    include/linux/mm.h | 3 ++-
    include/linux/mm_types.h | 1 +
    2 files changed, 3 insertions(+), 1 deletion(-)

    diff --git a/include/linux/mm.h b/include/linux/mm.h
    index fa2b9d6e665e..a6de58bb40c7 100644
    --- a/include/linux/mm.h
    +++ b/include/linux/mm.h
    @@ -472,7 +472,8 @@ static inline bool fault_flag_allow_retry_first(enum fault_flag flags)
    { FAULT_FLAG_USER, "USER" }, \
    { FAULT_FLAG_REMOTE, "REMOTE" }, \
    { FAULT_FLAG_INSTRUCTION, "INSTRUCTION" }, \
    - { FAULT_FLAG_INTERRUPTIBLE, "INTERRUPTIBLE" }
    + { FAULT_FLAG_INTERRUPTIBLE, "INTERRUPTIBLE" }, \
    + { FAULT_FLAG_VMA_LOCK, "VMA_LOCK" }

    /*
    * vm_fault is filled by the pagefault handler and passed to the vma's
    diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
    index 88619c6a29a3..c4c43f10344a 100644
    --- a/include/linux/mm_types.h
    +++ b/include/linux/mm_types.h
    @@ -1053,6 +1053,7 @@ enum fault_flag {
    FAULT_FLAG_INTERRUPTIBLE = 1 << 9,
    FAULT_FLAG_UNSHARE = 1 << 10,
    FAULT_FLAG_ORIG_PTE_VALID = 1 << 11,
    + FAULT_FLAG_VMA_LOCK = 1 << 12,
    };

    typedef unsigned int __bitwise zap_flags_t;
    --
    2.39.1
    \
     
     \ /
      Last update: 2023-03-26 23:59    [W:5.048 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site