Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L
linux-kevin
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
  • Merge Requests 0
    • Merge Requests 0
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Commits
  • Ezequiel Garcia
  • linux-kevin
  • Repository

Switch branch/tag
  • linux-kevin
  • mm
  • page_vma_mapped.c
Find file BlameHistoryPermalink
  • Kirill A. Shutemov's avatar
    mm, page_vma_mapped: Introduce pfn_in_hpage() · 7222708e
    Kirill A. Shutemov authored Jan 22, 2018
    The new helper would check if the pfn belongs to the page. For huge
    pages it checks if the PFN is within range covered by the huge page.
    
    The helper is used in check_pte(). The original code the helper replaces
    had two call to page_to_pfn(). page_to_pfn() is relatively costly.
    
    Although current GCC is able to optimize code to have one call, it's
    better to do this explicitly.
    Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    7222708e
page_vma_mapped.c 6.87 KB
EditWeb IDE

Replace page_vma_mapped.c

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.