Просмотр исходного кода

splice_pipe_desc: kill ->flags

no users left

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 8 лет назад
Родитель
Сommit
f81dc7d7d5
4 измененных файлов с 0 добавлено и 5 удалено
  1. 0 1
      include/linux/splice.h
  2. 0 1
      kernel/relay.c
  3. 0 2
      kernel/trace/trace.c
  4. 0 1
      net/core/skbuff.c

+ 0 - 1
include/linux/splice.h

@@ -55,7 +55,6 @@ struct splice_pipe_desc {
 	struct partial_page *partial;	/* pages[] may not be contig */
 	struct partial_page *partial;	/* pages[] may not be contig */
 	int nr_pages;			/* number of populated pages in map */
 	int nr_pages;			/* number of populated pages in map */
 	unsigned int nr_pages_max;	/* pages[] & partial[] arrays size */
 	unsigned int nr_pages_max;	/* pages[] & partial[] arrays size */
-	unsigned int flags;		/* splice flags */
 	const struct pipe_buf_operations *ops;/* ops associated with output pipe */
 	const struct pipe_buf_operations *ops;/* ops associated with output pipe */
 	void (*spd_release)(struct splice_pipe_desc *, unsigned int);
 	void (*spd_release)(struct splice_pipe_desc *, unsigned int);
 };
 };

+ 0 - 1
kernel/relay.c

@@ -1212,7 +1212,6 @@ static ssize_t subbuf_splice_actor(struct file *in,
 		.nr_pages = 0,
 		.nr_pages = 0,
 		.nr_pages_max = PIPE_DEF_BUFFERS,
 		.nr_pages_max = PIPE_DEF_BUFFERS,
 		.partial = partial,
 		.partial = partial,
-		.flags = flags,
 		.ops = &relay_pipe_buf_ops,
 		.ops = &relay_pipe_buf_ops,
 		.spd_release = relay_page_release,
 		.spd_release = relay_page_release,
 	};
 	};

+ 0 - 2
kernel/trace/trace.c

@@ -5536,7 +5536,6 @@ static ssize_t tracing_splice_read_pipe(struct file *filp,
 		.partial	= partial_def,
 		.partial	= partial_def,
 		.nr_pages	= 0, /* This gets updated below. */
 		.nr_pages	= 0, /* This gets updated below. */
 		.nr_pages_max	= PIPE_DEF_BUFFERS,
 		.nr_pages_max	= PIPE_DEF_BUFFERS,
-		.flags		= flags,
 		.ops		= &tracing_pipe_buf_ops,
 		.ops		= &tracing_pipe_buf_ops,
 		.spd_release	= tracing_spd_release_pipe,
 		.spd_release	= tracing_spd_release_pipe,
 	};
 	};
@@ -6434,7 +6433,6 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
 		.pages		= pages_def,
 		.pages		= pages_def,
 		.partial	= partial_def,
 		.partial	= partial_def,
 		.nr_pages_max	= PIPE_DEF_BUFFERS,
 		.nr_pages_max	= PIPE_DEF_BUFFERS,
-		.flags		= flags,
 		.ops		= &buffer_pipe_buf_ops,
 		.ops		= &buffer_pipe_buf_ops,
 		.spd_release	= buffer_spd_release,
 		.spd_release	= buffer_spd_release,
 	};
 	};

+ 0 - 1
net/core/skbuff.c

@@ -1976,7 +1976,6 @@ int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset,
 		.pages = pages,
 		.pages = pages,
 		.partial = partial,
 		.partial = partial,
 		.nr_pages_max = MAX_SKB_FRAGS,
 		.nr_pages_max = MAX_SKB_FRAGS,
-		.flags = flags,
 		.ops = &nosteal_pipe_buf_ops,
 		.ops = &nosteal_pipe_buf_ops,
 		.spd_release = sock_spd_release,
 		.spd_release = sock_spd_release,
 	};
 	};