mm, oom: add comment for why oom_adj exists
authorDavid Rientjes <rientjes@google.com>
Fri, 6 Nov 2015 02:50:32 +0000 (18:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commitb72bdfa73603f2f81fbac651b9ae36807e877752
treed302a8fb0e69169ef9e0749918ab6f0fd26ac2a9
parentc12176d3368b9b36ae484d323d41e94be26f9b65
mm, oom: add comment for why oom_adj exists

/proc/pid/oom_adj exists solely to avoid breaking existing userspace
binaries that write to the tunable.

Add a comment in the only possible location within the kernel tree to
describe the situation and motivation for keeping it around.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c