Changeset 67f63c4 in mainline for uspace/srv/vfs/vfs_mount.c
- Timestamp:
- 2008-01-08T20:47:39Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 861e7d1
- Parents:
- 7fff5eab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_mount.c
r7fff5eab r67f63c4 186 186 * We already have the root FS. 187 187 */ 188 rwlock_write r_lock(&namespace_rwlock);188 rwlock_write_lock(&namespace_rwlock); 189 189 rc = vfs_lookup_internal(buf, size, &mp, &mpsz, NULL); 190 190 if (rc != EOK) { … … 192 192 * The lookup failed for some reason. 193 193 */ 194 rwlock_write r_unlock(&namespace_rwlock);194 rwlock_write_unlock(&namespace_rwlock); 195 195 futex_up(&rootfs_futex); 196 196 vfs_node_put(mr_node); /* failed -> drop reference */ … … 201 201 mp_node = vfs_node_get(&mp, mpsz); 202 202 if (!mp_node) { 203 rwlock_write r_unlock(&namespace_rwlock);203 rwlock_write_unlock(&namespace_rwlock); 204 204 futex_up(&rootfs_futex); 205 205 vfs_node_put(mr_node); /* failed -> drop reference */ … … 213 213 * This prevents the mount point from being deleted. 214 214 */ 215 rwlock_write r_unlock(&namespace_rwlock);215 rwlock_write_unlock(&namespace_rwlock); 216 216 } else { 217 217 /*
Note:
See TracChangeset
for help on using the changeset viewer.