diff options
| author | Qu Wenruo <[email protected]> | 2019-03-20 14:27:46 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-04-29 19:02:24 +0200 |
| commit | 2e3c25136adfb293d517e17f761d3b8a43a8fc22 (patch) | |
| tree | bf3ed82cb016395c829c008ca107063061459390 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 02c6db4f7308e4f5adf4df2ef623160bfdb18636 (diff) | |
btrfs: extent_io: add proper error handling to lock_extent_buffer_for_io()
This function needs some extra checks on locked pages and eb. For error
handling we need to unlock locked pages and the eb.
There is a rare >0 return value branch, where all pages get locked
while write bio is not flushed.
Thankfully it's handled by the only caller, btree_write_cache_pages(),
as later write_one_eb() call will trigger submit_one_bio(). So there
shouldn't be any problem.
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions