X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=fs%2Fpipe.c;h=7fefb10db8d9d6ad2a187d3c352cd0557beb30f5;hb=70524490ee2ea1bbf6cee6c106597b3ac25a3fc2;hp=e984beb93a0ea88c436037f6e17c0edfbad37d54;hpb=cbb7e577e732f576b9f399bc2600bdc0626c68dc;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git diff --git a/fs/pipe.c b/fs/pipe.c index e984beb93a0..7fefb10db8d 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -131,12 +131,19 @@ static int anon_pipe_buf_steal(struct pipe_inode_info *pipe, return 0; } +static void anon_pipe_buf_get(struct pipe_inode_info *info, + struct pipe_buffer *buf) +{ + page_cache_get(buf->page); +} + static struct pipe_buf_operations anon_pipe_buf_ops = { .can_merge = 1, .map = anon_pipe_buf_map, .unmap = anon_pipe_buf_unmap, .release = anon_pipe_buf_release, .steal = anon_pipe_buf_steal, + .get = anon_pipe_buf_get, }; static ssize_t