btrfs: don't use extent_root in iterate_extent_inodes
[sfrench/cifs-2.6.git] / fs / btrfs / backref.c
index c6320c43319a39b78174753909f929f33ab0dde8..b51f8f90f226a3c77d5a680b965f872983e30e29 100644 (file)
@@ -1969,7 +1969,7 @@ int iterate_extent_inodes(struct btrfs_fs_info *fs_info,
                        extent_item_objectid);
 
        if (!search_commit_root) {
-               trans = btrfs_attach_transaction(fs_info->extent_root);
+               trans = btrfs_attach_transaction(fs_info->tree_root);
                if (IS_ERR(trans)) {
                        if (PTR_ERR(trans) != -ENOENT &&
                            PTR_ERR(trans) != -EROFS)