It's a static variable. As such, it constitutes saved state. Your proposed
alternative doesn't do the same thing:
| return 1
+--->8
Causes it to report that a low-memory condition has been exited as soon as
there are more than a minimum number available; the code above remembers "we
ran out of memory" until the available memory reaches a high-water mark,
avoiding serious thrashing where the available memory drops to the low-water
mark and stays there, causing a low-memory condition on virtually every
successive memory allocation.
-- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu carnegie mellon / electrical and computer engineering KF8NH We are Linux. Resistance is an indication that you missed the point.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/