Skip to content
  • Lai Jiangshan's avatar
    tracing: update file->f_pos when splice(2) it · c7625a55
    Lai Jiangshan authored
    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: default avatarLai Jiangshan <>
    Cc: Frederic Weisbecker <>
    Cc: Steven Rostedt <>
    LKML-Reference: <>
    Signed-off-by: default avatarIngo Molnar <>