Skip to content

Commit 6797d97

Browse files
Christoph HellwigAl Viro
authored andcommitted
trace: remove tracing_pipe_buf_ops
tracing_pipe_buf_ops has identical ops to default_pipe_buf_ops, so use that instead. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent f6dd975 commit 6797d97

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

kernel/trace/trace.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6304,13 +6304,6 @@ static void tracing_spd_release_pipe(struct splice_pipe_desc *spd,
63046304
__free_page(spd->pages[idx]);
63056305
}
63066306

6307-
static const struct pipe_buf_operations tracing_pipe_buf_ops = {
6308-
.confirm = generic_pipe_buf_confirm,
6309-
.release = generic_pipe_buf_release,
6310-
.steal = generic_pipe_buf_steal,
6311-
.get = generic_pipe_buf_get,
6312-
};
6313-
63146307
static size_t
63156308
tracing_fill_pipe_page(size_t rem, struct trace_iterator *iter)
63166309
{
@@ -6372,7 +6365,7 @@ static ssize_t tracing_splice_read_pipe(struct file *filp,
63726365
.partial = partial_def,
63736366
.nr_pages = 0, /* This gets updated below. */
63746367
.nr_pages_max = PIPE_DEF_BUFFERS,
6375-
.ops = &tracing_pipe_buf_ops,
6368+
.ops = &default_pipe_buf_ops,
63766369
.spd_release = tracing_spd_release_pipe,
63776370
};
63786371
ssize_t ret;

0 commit comments

Comments
 (0)