• L
    tracing: update file->f_pos when splice(2) it · c7625a55
    Lai Jiangshan 提交于
    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: NLai 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: NIngo Molnar <mingo@elte.hu>
    c7625a55
trace.c 94.9 KB