lkml.org 
[lkml]   [2019]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v12 5/6] khugepaged: enable collapse pmd for pte-mapped THP
On Fri, Aug 09, 2019 at 06:01:18PM +0000, Song Liu wrote:
> + if (pte_none(*pte) || !pte_present(*pte))
> + continue;

You don't need to check both. Present is never none.

--
Kirill A. Shutemov

\
 
 \ /
  Last update: 2019-08-12 14:12    [W:0.093 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site