Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Yinghai Lu <yinghai.lu@...>, Yinghai Lu <yhlu.kernel@...>, <jbarnes@...>
Noticed this when just trying to read the code to see if it looks sensible
(without looking at any real details).
Code like this is *not* acceptable.
We do proper indentations. Improperly indented code is buggy. It doesn't
matter if the compiler might generate the same code with or without
indentation, it's still totally unacceptable.
Having preprocessor conditionals that mix things up is not an excuse, and
it might be an argument for not doing the conditional that way (ie maybe
just make sure that when NUMA is not on, nid/next_nid will always be
different, and in a way that the compiler can perhaps see statically that
they are different - so that you can have the conditional there even with
NUMA off, but the compiler will just fold it away?).
Linus
--