pipe: merge anon_pipe_buf*_ops
authorChristoph Hellwig <hch@lst.de>
Wed, 20 May 2020 15:58:12 +0000 (17:58 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 May 2020 16:11:26 +0000 (12:11 -0400)
commitf6dd975583bd8ce088400648fd9819e4691c8958
tree73f60b95a258fc83e535781510a66288e2190a52
parent00c285d0d0fe4606d20fe88f1c824962475ba880
pipe: merge anon_pipe_buf*_ops

All the op vectors are exactly the same, they are just used to encode
packet or nomerge behavior.  There already is a flag for the packet
behavior, so just add a new one to allow for merging.  Inverting it vs
the previous nomerge special casing actually allows for much nicer code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/pipe.c
fs/splice.c
include/linux/pipe_fs_i.h