| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/mm: Avoid assuming PG_state_inuse == 0 in assign_pages()
 On 04/02/2020 13:40, Jan Beulich wrote: On 04.02.2020 14:33, Julien Grall wrote:At the moment, assign_pages() relies on PG_state_inuse to be 0. This makes the code slightly more difficult to understand.I can certainly see where you're coming from, but ... I want to avoid a BUILD_BUG_ON() if possible. I just realized, I could simplify to "(pg[i].count_info != PGC_state_inuse)". Would that be more suitable? (In no case, imo, there should be parentheses around a negation expression.) While I understand this would be valid, I find it a bit easier to read. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |