Commit f973fcab authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

pipes: Shrink pipe_should_open_transport to want_transport

It's static function near the file_desc_ops,
no need for a long name.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 61e289f1
...@@ -239,8 +239,7 @@ static int open_pipe(struct file_desc *d) ...@@ -239,8 +239,7 @@ static int open_pipe(struct file_desc *d)
return tmp; return tmp;
} }
static int pipe_should_open_transport(struct fdinfo_entry *fe, static int want_transport(struct fdinfo_entry *fe, struct file_desc *d)
struct file_desc *d)
{ {
struct pipe_info *pi; struct pipe_info *pi;
...@@ -251,7 +250,7 @@ static int pipe_should_open_transport(struct fdinfo_entry *fe, ...@@ -251,7 +250,7 @@ static int pipe_should_open_transport(struct fdinfo_entry *fe,
static struct file_desc_ops pipe_desc_ops = { static struct file_desc_ops pipe_desc_ops = {
.type = FDINFO_PIPE, .type = FDINFO_PIPE,
.open = open_pipe, .open = open_pipe,
.want_transport = pipe_should_open_transport, .want_transport = want_transport,
}; };
int collect_pipes(void) int collect_pipes(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment