提交 bdec8b2f 编写于 作者: K Kan Liang 提交者: Arnaldo Carvalho de Melo

perf mmap: Use stored 'overwrite' in perf_mmap__consume()

The 'overwrite' is set at allocation. It will not be changed.  Using it
to replace the parameter of perf_mmap__consume().  The parameters will
be discarded later.

No functional change.
Signed-off-by: NKan Liang <kan.liang@linux.intel.com>
Suggested-by: NArnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: NJiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1520350567-80082-5-git-send-email-kan.liang@linux.intel.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 b9de0f6e
...@@ -118,9 +118,9 @@ void perf_mmap__put(struct perf_mmap *map) ...@@ -118,9 +118,9 @@ void perf_mmap__put(struct perf_mmap *map)
perf_mmap__munmap(map); perf_mmap__munmap(map);
} }
void perf_mmap__consume(struct perf_mmap *map, bool overwrite) void perf_mmap__consume(struct perf_mmap *map, bool overwrite __maybe_unused)
{ {
if (!overwrite) { if (!map->overwrite) {
u64 old = map->prev; u64 old = map->prev;
perf_mmap__write_tail(map, old); perf_mmap__write_tail(map, old);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册