tracing: update file->f_pos when splice(2) it
authorLai Jiangshan <laijs@cn.fujitsu.com>
Thu, 2 Apr 2009 07:17:04 +0000 (15:17 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Apr 2009 10:44:44 +0000 (12:44 +0200)
commitc7625a555f55d7ae49236cde551786c88f5a5ce1
tree4cca942d46412d708945f574ef4c4b87adf92d1d
parentddd538f3e6a1a4bec2f6942f83a753263e6577b4
tracing: update file->f_pos when splice(2) it

Impact: Cleanup

These two lines:

if (unlikely(*ppos))
return -ESPIPE;

in tracing_buffers_splice_read() are not needed, VFS layer
has disabled seek(2).

We remove these two lines, and then we can update file->f_pos.

And tracing_buffers_read() updates file->f_pos, this fix
make tracing_buffers_splice_read() updates file->f_pos too.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <srostedt@redhat.com>
LKML-Reference: <49D46670.4010503@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c