]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd31527a703bc5d8b12e2b708bff18c58ee5e429d
tree73f60b95a258fc83e535781510a66288e2190a52
parent9daf234d46f5fdc52ddc0b13fda91c97f8bccbf0
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