aboutsummaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-05-02 09:29:57 -0400
committerJens Axboe <axboe@suse.de>2006-05-02 09:29:57 -0400
commit330ab71619bacc4d4494227a6cfc9b7f5500403d (patch)
tree43a9045011116f1afa506b80de1ede9872f45935 /fs/splice.c
parenta893b99be71f1d669b74f840e3a683dd077d007b (diff)
[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>
Diffstat (limited to 'fs/splice.c')
-rw-r--r--fs/splice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/splice.c b/fs/splice.c
index 3318b965c10b..7fb04970c72d 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -141,7 +141,7 @@ static int user_page_pipe_buf_steal(struct pipe_inode_info *pipe,
141 if (!(buf->flags & PIPE_BUF_FLAG_GIFT)) 141 if (!(buf->flags & PIPE_BUF_FLAG_GIFT))
142 return 1; 142 return 1;
143 143
144 return 0; 144 return generic_pipe_buf_steal(pipe, buf);
145} 145}
146 146
147static struct pipe_buf_operations user_page_pipe_buf_ops = { 147static struct pipe_buf_operations user_page_pipe_buf_ops = {