[PATCH] Some cleanup in the pipe code
authorAndi Kleen <ak@suse.de>
Sun, 1 Oct 2006 06:29:26 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:33 +0000 (00:39 -0700)
commitd6cbd281d189977b38eac7eb2a4678de19b6b483
treef853d303687275cd4328bfac53780b7c7c2c67ef
parent65da4d81f48e092f71feaf04bf2ccd096b5a5171
[PATCH] Some cleanup in the pipe code

Split the big and hard to read do_pipe function into smaller pieces.

This creates new create_write_pipe/free_write_pipe/create_read_pipe
functions.  These functions are made global so that they can be used by
other parts of the kernel.

The resulting code is more generic and easier to read and has cleaner error
handling and less gotos.

[akpm@osdl.org: cleanup]
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/pipe.c
include/linux/fs.h