]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: comments. undo stupid in dir.c
authorSage Weil <sage@newdream.net>
Tue, 13 May 2008 15:36:29 +0000 (08:36 -0700)
committerSage Weil <sage@newdream.net>
Tue, 13 May 2008 15:36:29 +0000 (08:36 -0700)
src/kernel/dir.c
src/kernel/inode.c

index b931a57d7cae70ceb323d15c573d8b5b1680de54..77f927ff61d75b56734e42a696b0babdd617bfbf 100644 (file)
@@ -372,7 +372,7 @@ static int ceph_create(struct inode *dir, struct dentry *dentry, int mode,
 
        dout(5, "create in dir %p dentry %p name '%.*s'\n",
             dir, dentry, dentry->d_name.len, dentry->d_name.name);
-       if (0 && nd) {
+       if (nd) {
                BUG_ON((nd->flags & LOOKUP_OPEN) == 0);
                err = ceph_lookup_open(dir, dentry, nd, mode);
                return err;
index 9ed5a15ba535dd75c413363e6d706200787e6a0d..4987913af586aac881cf87c5fcc7f1714c792095 100644 (file)
@@ -505,8 +505,13 @@ int ceph_dentry_lease_valid(struct dentry *dentry)
 }
 
 
-
-
+/*
+ * assimilate a full trace of inodes and dentries, from the root to
+ * the item relevant for this reply, into our cache.  make any dcache
+ * changes needed to properly reflect the completed operation (e.g.,
+ * call d_move).  make note of the distribution of metadata across the
+ * mds cluster.
+ */
 int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
                    struct ceph_mds_session *session)
 {
@@ -527,8 +532,9 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
        
 #if 0
        /*
-        * to test op resends against a recovering mds, we pretend that
-        * write ops have no trace...
+        * if we resend completed ops to a recovering mds, we get no
+        * trace.  pretend this is the case to ensure the 'no trace'
+        * handlers behave.
         */
        if (rinfo->head->op & CEPH_MDS_OP_WRITE) {
                dout(0, "fill_trace faking empty trace on %d %s\n",