From: NeilBrown Date: Tue, 25 Aug 2009 07:09:55 +0000 (+1000) Subject: Avoid confusion with ref name "orphans" X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=79d0b149e494c95602ba849a87ff03e17d2bbeb3;p=LaFS.git Avoid confusion with ref name "orphans" Two different places use the reference name "orphans", so change one to avoid confusion. --- diff --git a/dir.c b/dir.c index b7660f5..2f7d000 100644 --- a/dir.c +++ b/dir.c @@ -202,7 +202,7 @@ static void dir_add_orphan(struct datablock *b) /* i_mutex protects dirorphans */ LAFS_BUG(!mutex_is_locked(&dir->i_mutex), &b->b); if (list_empty(&b->orphans)) { - getdref(b, MKREF(orphan)); + getdref(b, MKREF(dirorphan)); list_add(&b->orphans, &LAFSI(dir)->md.file.dirorphans); if (list_empty(&LAFSI(dir)->orphans)) { struct fs *fs = fs_from_inode(dir); @@ -1446,7 +1446,7 @@ static int dir_handle_orphan(struct inode *dir, struct datablock *b) unmap_dblock(b, buf); } lafs_checkpoint_unlock(fs); - putdref(b, MKREF(orphan)); + putdref(b, MKREF(dirorphan)); lafs_orphan_release(fs, b); return 0;