commit | 330ab71619bacc4d4494227a6cfc9b7f5500403d | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Tue May 02 15:29:57 2006 +0200 |
committer | Jens Axboe <axboe@suse.de> | Tue May 02 15:29:57 2006 +0200 |
tree | 43a9045011116f1afa506b80de1ede9872f45935 | |
parent | a893b99be71f1d669b74f840e3a683dd077d007b [diff] [blame] |
[PATCH] vmsplice: restrict stealing a little more Apply the same rules as the anon pipe pages, only allow stealing if no one else is using the page. Signed-off-by: Jens Axboe <axboe@suse.de>
diff --git a/fs/splice.c b/fs/splice.c index 3318b96..7fb0497 100644 --- a/fs/splice.c +++ b/fs/splice.c
@@ -141,7 +141,7 @@ if (!(buf->flags & PIPE_BUF_FLAG_GIFT)) return 1; - return 0; + return generic_pipe_buf_steal(pipe, buf); } static struct pipe_buf_operations user_page_pipe_buf_ops = {