Whamcloud - gitweb
b=5907
authorgreen <green>
Tue, 26 Apr 2005 20:49:30 +0000 (20:49 +0000)
committergreen <green>
Tue, 26 Apr 2005 20:49:30 +0000 (20:49 +0000)
r=adilger
Do not unhash mountpoint dentries and silence error message

lustre/ChangeLog
lustre/llite/dcache.c

index b70370a..c9ab087 100644 (file)
@@ -39,6 +39,7 @@ tbd         Cluster File Systems, Inc. <info@clusterfs.com>
        - support for mountfsoptions and clientoptions to the Lustre LDAP (5873)
        - improved "lustre status" script
        - initialize blocksize for non-regular files (6062)
+       - Do not unhash mountpoint dentries (5907)
 
 2005-03-22  Cluster File Systems, Inc. <info@clusterfs.com>
        * version 1.4.1
index 39a53bd..8f55aa4 100644 (file)
@@ -167,10 +167,16 @@ restart:
                         lustre_dump_dentry(dentry, 1);
                         portals_debug_dumpstack(NULL);
                 } else if (d_mountpoint(dentry)) {
-                        CERROR("called on mountpoint (?) dentry=%p, inode=%p "
-                               "ino=%lu\n", dentry, inode, inode->i_ino);
-                        lustre_dump_dentry(dentry, 1);
-                        portals_debug_dumpstack(NULL);
+                        /* For mountpoints we skip removal of the dentry
+                           which happens solely because we have a lock on it
+                           obtained when this dentry was not a mountpoint yet */
+                        CDEBUG(D_DENTRY, "Skippind mountpoint dentry removal "
+                                         "%.*s (%p) parent %p\n",
+                                          dentry->d_name.len,
+                                          dentry->d_name.name,
+                                          dentry, dentry->d_parent);
+
+                        continue;
                 }
 
                 if (atomic_read(&dentry->d_count) == 0) {