]> git.baikalelectronics.ru Git - kernel.git/commit
perf/core: Make the mlock accounting simple again
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Wed, 20 Nov 2019 17:06:40 +0000 (19:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Nov 2019 06:37:50 +0000 (07:37 +0100)
commit9970d1c6e2c3feb23f91c71f3056522f69fe6cde
treed30298b556e77bdc67b0f1d0bdeb2fc57d241938
parent7075769a5e55c112cefae4bad3cd0dc314d30b05
perf/core: Make the mlock accounting simple again

Commit:

  e3d48810db66 ("perf/core: Rework memory accounting in perf_mmap()")

does a lot of things to the mlock accounting arithmetics, while the only
thing that actually needed to happen is subtracting the part that is
charged to the mm from the part that is charged to the user, so that the
former isn't charged twice.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Acked-by: Song Liu <songliubraving@fb.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wanpeng Li <wanpengli@tencent.com>
Cc: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Cc: songliubraving@fb.com
Link: https://lkml.kernel.org/r/20191120170640.54123-1-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c