]> git.neil.brown.name Git - LaFS.git/commitdiff
Avoid confusion with ref name "orphans"
authorNeilBrown <neilb@suse.de>
Tue, 25 Aug 2009 07:09:55 +0000 (17:09 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 25 Aug 2009 07:09:55 +0000 (17:09 +1000)
Two different places use the reference name "orphans", so change one
to avoid confusion.

dir.c

diff --git a/dir.c b/dir.c
index b7660f599fe3b2149298e5d85132a502f21b78c7..2f7d000ff3528b062becaed27e191ccbbc117f11 100644 (file)
--- 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;