From: NeilBrown Date: Wed, 28 Jul 2010 12:38:07 +0000 (+1000) Subject: Remove some dead code. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=81af2fad61828ca3994cb73383f4be5f36df4ab2;p=LaFS.git Remove some dead code. This used to play with WritePhase, but as we don't do that any more, the whole thing can go. Signed-off-by: NeilBrown --- diff --git a/cluster.c b/cluster.c index 13f5f72..d575732 100644 --- a/cluster.c +++ b/cluster.c @@ -1313,17 +1313,6 @@ static void cluster_flush(struct fs *fs, int cnum) WARN_ON(credits == 0); lafs_space_return(fs, credits); - if (!test_bit(B_Index, &b->flags) && - LAFSI(b->inode)->type == TypeInodeFile && - dblk(b)->my_inode) { - struct indexblock *ib; - spin_lock(&dblk(b)->my_inode->i_data.private_lock); - ib = getiref_locked(LAFSI(dblk(b)->my_inode)->iblock, - MKREF(cflush)); - spin_unlock(&dblk(b)->my_inode->i_data.private_lock); - - putiref(ib, MKREF(cflush)); - } spin_lock(&fs->lock); list_del(&b->lru); list_add(&b->lru, &wc->pending_blocks[(wc->pending_next+3)%4]);