]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50cad801331512ba39e5adc1c82b6f21b36e5e4d
treed302a8fb0e69169ef9e0749918ab6f0fd26ac2a9
parentc455669013fb0f9b42b490b87c1b246a06758837
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