• Liu Hui's avatar
    Btrfs: Some fixes for batching extent insert. · b4eec2ca
    Liu Hui authored
    In insert_extents(), when ret==1 and last is not zero, it should
    check if the current inserted item is the last item in this batching
    inserts. If so, it should just break from loop. If not, 'cur =
    insert_list->next' will make no sense because the list is empty now,
    and 'op' will point to an unexpectable place.
    
    There are also some trivial fixs in this patch including one comment
    typo error and deleting two redundant lines.
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    b4eec2ca
ctree.c 100 KB