Btrfs: free space accounting redo
[linux-2.6-block.git] / fs / btrfs / ctree.c
index 18e84472abb524fad55d9d7e37dcf4ba9b5c52ef..6f467901246ff3154ff69a01d932905b80021aa7 100644 (file)
@@ -2725,9 +2725,8 @@ int btrfs_insert_empty_items(struct btrfs_trans_handle *trans,
 
        total_size = total_data + (nr * sizeof(struct btrfs_item));
        ret = btrfs_search_slot(trans, root, cpu_key, path, total_size, 1);
-       if (ret == 0) {
+       if (ret == 0)
                return -EEXIST;
-       }
        if (ret < 0)
                goto out;