]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: one more update_parent fix
authorSage Weil <sage@newdream.net>
Fri, 16 Jan 2009 18:44:34 +0000 (10:44 -0800)
committerSage Weil <sage@newdream.net>
Fri, 16 Jan 2009 18:44:34 +0000 (10:44 -0800)
src/kernel/inode.c

index 2084f489cecde1ef57e6fb5f8ff5ccc6471535aa..0783b06d480da73269711d29393e2f6900537c6f 100644 (file)
@@ -958,6 +958,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
                                     dn, dn->d_inode, ceph_vinop(dn->d_inode));
                                d_delete(dn);
                                dput(dn);
+                               update_parent = 1;
                                goto retry_lookup;
                        }
                        dout(10, "dn %p correct %p ino %llx.%llx\n",
@@ -974,7 +975,6 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
                                goto out_dir_no_inode;
                        }
                        newdn = splice_dentry(dn, in, &have_lease);
-                       update_parent = 1;
 
                        if (IS_ERR(newdn)) {
                                goto no_mutex_find_alias;