> +     key.objectid = 0;
> +     key.type = BTRFS_UUID_KEY;
> +     key.offset = 0;
> +
> +     max_key.objectid = (u64)-1;
> +     max_key.type = BTRFS_UUID_KEY;
> +     max_key.offset = (u64)-1;

> +             if (key.offset < (u64)-1) {
> +                     key.offset++;
> +             } else if (key.type < BTRFS_UUID_KEY) {
> +                     key.offset = 0;
> +                     key.type = BTRFS_UUID_KEY;
> +             } else if (key.objectid < (u64)-1) {
> +                     key.offset = 0;
> +                     key.type = 0;
> +                     key.objectid++;
> +             } else {
> +                     break;
> +             }
> +     }

Presumably all of this isn't needed now that the uuid items are in their
own tree?  Just iterate over all the items in the tree?

- z
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to