• Muchun Song's avatar
    mm: simplify follow_invalidate_pte() · 0e5e64c0
    Muchun Song authored
    The only user (DAX) of range and pmdpp parameters of
    follow_invalidate_pte() is gone, it is safe to remove them and make it
    static to simlify the code.  This is revertant of the following commits:
    
      09796395 ("mm: add follow_pte_pmd()")
      a4d1a885 ("dax: update to new mmu_notifier semantic")
    
    There is only one caller of the follow_invalidate_pte().  So just fold it
    into follow_pte() and remove it.
    
    Link: https://lkml.kernel.org/r/20220403053957.10770-7-songmuchun@bytedance.comSigned-off-by: default avatarMuchun Song <songmuchun@bytedance.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Cc: Alistair Popple <apopple@nvidia.com>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Dan Williams <dan.j.williams@intel.com>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: Jan Kara <jack@suse.cz>
    Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Ralph Campbell <rcampbell@nvidia.com>
    Cc: Ross Zwisler <zwisler@kernel.org>
    Cc: Xiongchun Duan <duanxiongchun@bytedance.com>
    Cc: Xiyu Yang <xiyuyang19@fudan.edu.cn>
    Cc: Yang Shi <shy828301@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    0e5e64c0
memory.c 149 KB