[CRIU] [PATCH 14/21] pipes: Shrink pipe_should_open_transport to want_transport

Cyrill Gorcunov gorcunov at openvz.org
Wed Jun 6 18:21:54 EDT 2012


It's static function near the file_desc_ops, no need
a one-special-long-name.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 pipes.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/pipes.c b/pipes.c
index e7d0bab..bb2d559 100644
--- a/pipes.c
+++ b/pipes.c
@@ -239,8 +239,7 @@ static int open_pipe(struct file_desc *d)
 	return tmp;
 }
 
-static int pipe_should_open_transport(struct fdinfo_entry *fe,
-		struct file_desc *d)
+static int want_transport(struct fdinfo_entry *fe, struct file_desc *d)
 {
 	struct pipe_info *pi;
 
@@ -251,7 +250,7 @@ static int pipe_should_open_transport(struct fdinfo_entry *fe,
 static struct file_desc_ops pipe_desc_ops = {
 	.type		= FDINFO_PIPE,
 	.open		= open_pipe,
-	.want_transport	= pipe_should_open_transport,
+	.want_transport	= want_transport,
 };
 
 int collect_pipes(void)
-- 
1.7.7.6



More information about the CRIU mailing list