• J
    btrfs: do not special case the extent root for switch commit roots · 826582ca
    Josef Bacik 提交于
    This is a leftover from when we used to independently swap the extent
    root's commit root and the fs tree commit roots.  At the time I simply
    changed the helper to a list_add.  There's actually no reason to not add
    the extent root to the switch commit root at this point, we don't care
    about the order we do the switching since it's all done under the
    commit_root_sem.
    
    If we re-mark the extent root dirty after adding it to the
    switch_commits list we'll see that BTRFS_ROOT_DIRTY isn't set and then
    list_move it back onto the dirty list, and then we'll redo the tree
    update and everything will be ok.
    Signed-off-by: NJosef Bacik <josef@toxicpanda.com>
    Reviewed-by: NDavid Sterba <dsterba@suse.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    826582ca
transaction.c 69.7 KB