]> git.baikalelectronics.ru Git - 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)
commit90b336bc7bc0a0b265137914b6fe1f05ba81d455
tree024b8f4afcf6bb85a5daafc475c47187b40435d3
parentdc603b2f9d8211efd08aff47f16a5c9ac8db419e
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