Skip to content
Commit 5e5745dc authored by Yan's avatar Yan Committed by Chris Mason
Browse files

Btrfs: Add full_scan parameter to find_search_start



This patch adds a new parameter 'full_scan' to 'find_search_start',
thereby 'find_search_start' can know whether 'find_free_extent' is in
full scan phrase. I feel that 'find_search_start' should skip calling
'btrfs_find_block_group' when 'find_free_extent' is in full scan
phrase. In my test on a 2GB volume, Oops occurs when space usage is
about 76%. After apply the patch,  Oops occurs when space usage is
near 100%.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 324ae4df
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment