diff options
| author | Qu Wenruo <[email protected]> | 2020-12-02 06:48:00 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-12-09 18:16:10 +0000 |
| commit | f91e0d0c4cd986af54a8b2deb43b9f7b35299a65 (patch) | |
| tree | 80cb3b16dca1ce2cf967df046cbdb6d02998029e /fs/btrfs/dev-replace.c | |
| parent | btrfs: make btrfs_verify_data_csum follow sector size (diff) | |
| download | kernel-f91e0d0c4cd986af54a8b2deb43b9f7b35299a65.tar.gz kernel-f91e0d0c4cd986af54a8b2deb43b9f7b35299a65.zip | |
btrfs: factor out btree page submission code to a helper
In btree_write_cache_pages() we have a btree page submission routine
buried deeply in a nested loop.
This patch will extract that part of code into a helper function,
submit_eb_page(), to do the same work.
Since submit_eb_page() now can return >0 for successful extent
buffer submission, remove the "ASSERT(ret <= 0);" line.
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
