pipe: add support for shrinking and growing pipes
This patch adds F_GETPIPE_SZ and F_SETPIPE_SZ fcntl() actions for
growing and shrinking the size of a pipe and adjusts pipe.c and splice.c
(and relay and network splice) usage to work with these larger (or smaller)
pipes.
Signed-off-by:
Jens Axboe <jens.axboe@oracle.com>
Showing
- fs/fcntl.c 5 additions, 0 deletionsfs/fcntl.c
- fs/pipe.c 95 additions, 12 deletionsfs/pipe.c
- fs/splice.c 105 additions, 46 deletionsfs/splice.c
- include/linux/fcntl.h 6 additions, 0 deletionsinclude/linux/fcntl.h
- include/linux/pipe_fs_i.h 7 additions, 4 deletionsinclude/linux/pipe_fs_i.h
- include/linux/splice.h 7 additions, 0 deletionsinclude/linux/splice.h
- kernel/relay.c 10 additions, 5 deletionskernel/relay.c
- kernel/trace/trace.c 36 additions, 24 deletionskernel/trace/trace.c
- net/core/skbuff.c 21 additions, 17 deletionsnet/core/skbuff.c
Loading
Please register or sign in to comment