• 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 <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: default avatarIngo Molnar <mingo@elte.hu>
    c7625a55
trace.c 94.9 KB