]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6327038cb6893934f242d6eb265905044ee41e11
treef82b77d9f2fd5d4eb5e66bc2bb8ff5df63db3c7f
parent26510d4b51f216bd78266b3e26a9aee3db3be551
[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