pipe: move limit checking logic into pipe_set_size()
authorMichael Kerrisk (man-pages) <mtk.manpages@gmail.com>
Sat, 10 Sep 2016 10:34:26 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:26 +0000 (20:34 +1000)
commita2a77da529f817d1370511cac9d109803ea7fe14
tree8a3165fa7fbed3f1eb0fe56a2adcbcd2d0b05b32
parent3a7bb5979407f47b2ae8287d74cab54fdd430358
pipe: move limit checking logic into pipe_set_size()

This is a preparatory patch for following work. Move the F_SETPIPE_SZ
limit-checking logic from pipe_fcntl() into pipe_set_size().  This
simplifies the code a little, and allows for reworking required in
a later patch that fixes the limit checking in pipe_set_size()

Link: http://lkml.kernel.org/r/3701b2c5-2c52-2c3e-226d-29b9deb29b50@gmail.com
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Willy Tarreau <w@1wt.eu>
Cc: Vegard Nossum <vegard.nossum@oracle.com>
Cc: <socketpair@gmail.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Jens Axboe <axboe@fb.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/pipe.c
This page took 0.024891 seconds and 5 git commands to generate.