Merge tag 'notifications-20200601' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-starfive.git] / kernel / watch_queue.c
index 9a9699c..f74020f 100644 (file)
@@ -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,
 };