diff options
Diffstat (limited to 'kernel/watch_queue.c')
-rw-r--r-- | kernel/watch_queue.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/kernel/watch_queue.c b/kernel/watch_queue.c index 9a9699c06709..f74020f6bd9d 100644 --- a/kernel/watch_queue.c +++ b/kernel/watch_queue.c @@ -56,17 +56,13 @@ static void watch_queue_pipe_buf_release(struct pipe_inode_info *pipe, set_bit(bit, wqueue->notes_bitmap); } -static int watch_queue_pipe_buf_steal(struct pipe_inode_info *pipe, - struct pipe_buffer *buf) -{ - return -1; /* No. */ -} +// No try_steal function => no stealing +#define watch_queue_pipe_buf_try_steal NULL /* New data written to a pipe may be appended to a buffer with this type. */ static const struct pipe_buf_operations watch_queue_pipe_buf_ops = { - .confirm = generic_pipe_buf_confirm, .release = watch_queue_pipe_buf_release, - .steal = watch_queue_pipe_buf_steal, + .try_steal = watch_queue_pipe_buf_try_steal, .get = generic_pipe_buf_get, }; |