btrfs: stop accessing ->extent_root directly
[sfrench/cifs-2.6.git] / fs / btrfs / transaction.c
index c9f85c412b23e56e45708a2a127d1cb1bd6d3f28..cc83ae624b4ba3c0c415b0f9ca6b8fbb6abec8d3 100644 (file)
@@ -419,7 +419,7 @@ static int record_root_in_trans(struct btrfs_trans_handle *trans,
 
        if ((test_bit(BTRFS_ROOT_SHAREABLE, &root->state) &&
            root->last_trans < trans->transid) || force) {
-               WARN_ON(root == fs_info->extent_root);
+               WARN_ON(root == fs_info->_extent_root);
                WARN_ON(!force && root->commit_root != root->node);
 
                /*