diff options
author | Qu Wenruo <wqu@suse.com> | 2020-12-02 09:48:00 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-09 21:16:10 +0300 |
commit | f91e0d0c4cd986af54a8b2deb43b9f7b35299a65 (patch) | |
tree | 80cb3b16dca1ce2cf967df046cbdb6d02998029e /include/uapi/linux/btrfs_tree.h | |
parent | f44cf41075b05660d61efa7bfa8350b45286f065 (diff) | |
download | linux-f91e0d0c4cd986af54a8b2deb43b9f7b35299a65.tar.xz |
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 <josef@toxicpanda.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux/btrfs_tree.h')
0 files changed, 0 insertions, 0 deletions