> + spin_lock(&block_group->tree_lock); > + if (btrfs_block_group_free_space(block_group) !=
This function call can be replaced by block_group->free_space, so we don't have to iterate the tree. (This function gets removed in my patchset for inode number caching) > + (block_group->key.offset - used - block_group->bytes_super)) { > + spin_unlock(&block_group->tree_lock); > + printk(KERN_ERR "block group %llu has an wrong amount of free " > + "space\n", block_group->key.objectid); > + ret = 0; > + goto free_cache; > + } > + spin_unlock(&block_group->tree_lock); -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html