From: Lai Jiangshan Date: Thu, 2 Apr 2009 07:17:04 +0000 (+0800) Subject: tracing: update file->f_pos when splice(2) it X-Git-Tag: v2.6.30-rc2~75^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7625a555f55d7ae49236cde551786c88f5a5ce1;p=pandora-kernel.git 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 Cc: Frederic Weisbecker Cc: Steven Rostedt LKML-Reference: <49D46670.4010503@cn.fujitsu.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed