]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
pipe: stop using ->can_merge
authorJann Horn <jannh@google.com>
Wed, 23 Jan 2019 14:19:18 +0000 (15:19 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Feb 2019 07:01:45 +0000 (02:01 -0500)
commit01e7187b41191376cee8bea8de9f907b001e87b4
tree024b8f4afcf6bb85a5daafc475c47187b40435d3
parenta0ce2f0aa6ad97c3d4927bf2ca54bcebdf062d55
pipe: stop using ->can_merge

Al Viro pointed out that since there is only one pipe buffer type to which
new data can be appended, it isn't necessary to have a ->can_merge field in
struct pipe_buf_operations, we can just check for a magic type.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/pipe.c
fs/splice.c
include/linux/pipe_fs_i.h
kernel/relay.c
kernel/trace/trace.c
net/smc/smc_rx.c