Btrfs: Drop the hardware crc32c asm code
[safe/jmp/linux-2.6] / fs / btrfs / inode-map.c
index cd6171c..2aa7987 100644 (file)
@@ -117,15 +117,18 @@ int btrfs_find_free_objectid(struct btrfs_trans_handle *trans,
                                        *objectid = last_ino;
                                        goto found;
                                }
+                       } else if (key.objectid > search_start) {
+                               *objectid = search_start;
+                               goto found;
                        }
                }
                if (key.objectid >= BTRFS_LAST_FREE_OBJECTID)
                        break;
+
                start_found = 1;
                last_ino = key.objectid + 1;
                path->slots[0]++;
        }
-       // FIXME -ENOSPC
        BUG_ON(1);
 found:
        btrfs_release_path(root, path);