Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] splice: fix unlocking of page on error ->prepare_write()
Looking at generic_file_buffered_write(), we need to unlock_page() if prepare write fails and it isn't due to racing with truncate(). Also trim the size if ->prepare_write() fails, if we have to. Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information