]> git.neil.brown.name Git - LaFS.git/commitdiff
dir: replace wrong constant with correct symbolic version.
authorNeilBrown <neilb@suse.de>
Thu, 3 Sep 2009 06:07:45 +0000 (16:07 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 3 Sep 2009 06:07:45 +0000 (16:07 +1000)
dir.c

diff --git a/dir.c b/dir.c
index cfd23a7a9c1c508ff831ee7fd0b49d4f56082704..8c61dd1ca73903d8bccd2542191acf19ef62fbfb 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -412,7 +412,7 @@ dir_delete_commit(struct dirop_handle *doh,
         *    If we end up leaving that first entry, make me an orphan so
         *    the we can check if the chain continues in a previous block.
         */
-       if (((doh->hash+1) & 0x7fff) == doh->dirent_block->b.fileaddr)
+       if (((doh->hash+1) & MaxDirHash) == doh->dirent_block->b.fileaddr)
                unmap_dblock(doh->dirent_block, buf);
        else if (lafs_dir_find(buf, bits, seed, doh->hash+1, &ignore) == 0) {
                /* This is the end of a chain, clean up */