From: NeilBrown Date: Tue, 25 Aug 2009 07:09:52 +0000 (+1000) Subject: Remove useless test in lafs_add_block_address X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=19c9e3ac94e5e40853f42a091404c6774bc75fdf;p=LaFS.git Remove useless test in lafs_add_block_address If it is an Index block, we never get to this test, so there is no point testing it again. --- diff --git a/index.c b/index.c index c6e4a81..64ea18c 100644 --- a/index.c +++ b/index.c @@ -1768,8 +1768,7 @@ int lafs_add_block_address(struct fs *fs, struct block *blk) spin_lock(&fs->lock); a = &p->uninc_table.pending_addr [p->uninc_table.pending_cnt-1]; - if (!test_bit(B_Index, &blk->flags) && - p->uninc_table.pending_cnt >= 1 && + if (p->uninc_table.pending_cnt >= 1 && a->fileaddr+a->cnt == blk->fileaddr && a->physaddr+a->cnt == blk->physaddr) { a->cnt++;