lkml.org 
[lkml]   [2018]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 13/19] mm/migrate: Use xchg instead of spinlock
> If you maybe write that like:
>
> if (time_after(jiffies, next_window) &&
> xchg(&pgdat->numabalancing_migrate_nr_pages, 0UL)) {
>
> do {
> next_window += interval;
> } while (unlikely(time_after(jiffies, next_window)));
>
> WRITE_ONCE(pgdat->numabalancing_migrate_next_window, next_window);
> }
>
> Then you avoid an indent level and line-wrap, resulting imo easier to
> read code.
>

Okay will do.

\
 
 \ /
  Last update: 2018-07-23 13:21    [W:0.107 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site