[Question] mm/vmpressure.c: ilog2 calculation in constant

From: torvic9
Date: Fri May 28 2021 - 08:09:03 EST


Hello,

in mm/vmpressure.c, we have defined this constant:

static const unsigned int vmpressure_level_critical_prio = ilog2(100 / 10);

My question is: Why do we calculate ilog2 instead of simply setting the constant to '3'?
Then, I guess, we could also get rid of the log2.h include.
Note that this is just a question, not a request, as I'm sure there is a reason for this.
(given the help text in the comment just above)

Greetings,
Tor Vic