Unbreak buildworld after recent hammer2 changes.
authorSascha Wildner <saw@online.de>
Sun, 30 Mar 2014 21:36:05 +0000 (23:36 +0200)
committerSascha Wildner <saw@online.de>
Sun, 30 Mar 2014 21:36:05 +0000 (23:36 +0200)
504565062f34ec55037ac0cf308fe3562f091460 renamed HAMMER2_MAX_KEY to
HAMMER2_KEY_MAX but libstand wasn't adjusted.

Reported-by: David Shao
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2658>

lib/libstand/hammer2.c

index 665f1b4..2a27adb 100644 (file)
@@ -297,7 +297,7 @@ h2lookup(struct hammer2_fs *hfs, hammer2_blockref_t *base,
         * assumptions.
         */
 again:
-       best.key = HAMMER2_MAX_KEY;
+       best.key = HAMMER2_KEY_MAX;
        best.type = 0;
 
        for (i = 0; i < count; ++i) {
@@ -837,7 +837,7 @@ hammer2_readdir(struct open_file *f, struct dirent *den)
        for (;;) {
                bytes = h2lookup(&hf->hfs, &hf->bref,
                                 f->f_offset | HAMMER2_DIRHASH_VISIBLE, 
-                                HAMMER2_MAX_KEY,
+                                HAMMER2_KEY_MAX,
                                 &bres, (void **)&ipdata);
                if (bytes <= 0)
                        break;