[PATCH] splice: fix bugs with stealing regular pipe pages
authorJens Axboe <axboe@suse.de>
Sun, 30 Apr 2006 14:36:32 +0000 (16:36 +0200)
committerJens Axboe <axboe@suse.de>
Sun, 30 Apr 2006 14:36:32 +0000 (16:36 +0200)
commit46e678c96bbd775abd05d3ddbe2fd334794f9157
treef82b77d9f2fd5d4eb5e66bc2bb8ff5df63db3c7f
parente0a515bc6a2188f02916e976f419a8640312e32a
[PATCH] splice: fix bugs with stealing regular pipe pages

- Check that page has suitable count for stealing in the regular pipes.
- pipe_to_file() assumes that the page is locked on succesful steal, so
  do that in the pipe steal hook
- Missing unlock_page() in add_to_page_cache() failure.

Signed-off-by: Jens Axboe <axboe@suse.de>
fs/pipe.c
fs/splice.c