tracing: Update *ppos instead of filp->f_pos
authorJiri Olsa <jolsa@redhat.com>
Fri, 23 Oct 2009 23:36:16 +0000 (19:36 -0400)
committerIngo Molnar <mingo@elte.hu>
Sat, 24 Oct 2009 09:07:49 +0000 (11:07 +0200)
commitcf8517cf905b5cd31d5790250b9ac39f7cb8aa53
tree22796f676ce955ec204ece1485dac6e93d1aeb3e
parent964fe080d94db82a3268443e9b9ece4c60246414
tracing: Update *ppos instead of filp->f_pos

Instead of directly updating filp->f_pos we should update the *ppos
argument. The filp->f_pos gets updated within the file_pos_write()
function called from sys_write().

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20091023233646.399670810@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c
kernel/trace/trace.c