Merge branch 'master' into iso-9660
[lunaix-os.git] / lunaix-os / kernel / fs / path_walk.c
index c7d4ecb1e23f4a0914332928941515f8db8242b5..a0331e70139d644b1a4657d2c9d64aaa404bfe04 100644 (file)
@@ -74,9 +74,7 @@ __vfs_walk(struct v_dnode* start,
 
         if (!lookahead && (walk_options & VFS_WALK_PARENT)) {
             if (component) {
-                component->hash = name.hash;
-                component->len = j;
-                strcpy(component->value, fname_buffer);
+                hstrcpy(component, &name);
             }
             break;
         }
@@ -108,7 +106,7 @@ __vfs_walk(struct v_dnode* start,
             }
 
             // reposition the resolved subtree pointed by symlink
-            vfs_dcache_rehash(current_level->parent, dnode);
+            // vfs_dcache_rehash(current_level->parent, dnode);
             current_level = dnode;
             current_inode = dnode->inode;
         }