]> git.neil.brown.name Git - LaFS.git/commitdiff
MKREF(dblock) should have been MKREF(iblock)
authorNeilBrown <neilb@suse.de>
Sun, 2 Aug 2009 09:28:52 +0000 (19:28 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 2 Aug 2009 09:28:52 +0000 (19:28 +1000)
The iblock holds a reference to the dblock, hence the
confusion...

super.c

diff --git a/super.c b/super.c
index caa4ed0d0f85f15da7ae9039bc18afc04e9f1b2f..852c36216ab931dd31861368633f9cea51dd43a7 100644 (file)
--- a/super.c
+++ b/super.c
@@ -688,7 +688,7 @@ lafs_put_super(struct super_block *sb)
                        break;
        dprintk("Putting ss %d\n", ss);
        li = LAFSI(fs->ss[ss].root);
-       putdref(li->dblock, MKREF(dblock)); li->dblock = NULL;
+       putdref(li->dblock, MKREF(iblock)); li->dblock = NULL;
        iput(fs->ss[ss].root);
        fs->ss[ss].root = NULL;
 }
@@ -907,7 +907,7 @@ void lafs_destroy_inode(struct inode *inode)
                        li->dblock = NULL;
                }
                spin_unlock(&inode->i_data.private_lock);
-               putdref(db, MKREF(dblock));
+               putdref(db, MKREF(iblock));
                spin_lock(&lafs_hash_lock);
                list_for_each_entry_safe(ib, t, &li->free_index, b.siblings) {
                        ib->b.inode = NULL;