From e2c938918e8abb469ba26f435ecb2ee2b8b51eda Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 3 Sep 2009 16:07:45 +1000 Subject: [PATCH] dir: replace wrong constant with correct symbolic version. --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dir.c b/dir.c index cfd23a7..8c61dd1 100644 --- 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 */ -- 2.39.5