• Y
    Btrfs: Add full_scan parameter to find_search_start · 5e5745dc
    Yan 提交于
    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: NChris Mason <chris.mason@oracle.com>
    5e5745dc
extent-tree.c 40.4 KB