Changeset c31d773 in mainline for uspace/srv/vfs/vfs_ops.c
- Timestamp:
- 2008-03-09T19:55:42Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 088cecc
- Parents:
- c089919
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
rc089919 rc31d773 51 51 #include <fcntl.h> 52 52 #include <assert.h> 53 #include <atomic.h>54 53 #include <vfs/canonify.h> 55 54 … … 63 62 RWLOCK_INITIALIZE(namespace_rwlock); 64 63 65 atomic_t rootfs_futex = FUTEX_INITIALIZER;64 futex_t rootfs_futex = FUTEX_INITIALIZER; 66 65 vfs_triplet_t rootfs = { 67 66 .fs_handle = 0, … … 687 686 */ 688 687 vfs_node_t *node = vfs_node_get(&lr); 688 futex_down(&nodes_futex); 689 689 node->lnkcnt--; 690 futex_up(&nodes_futex); 690 691 rwlock_write_unlock(&namespace_rwlock); 691 692 vfs_node_put(node); … … 811 812 return; 812 813 } 814 futex_down(&nodes_futex); 813 815 new_node->lnkcnt--; 816 futex_up(&nodes_futex); 814 817 break; 815 818 default: … … 831 834 return; 832 835 } 836 futex_down(&nodes_futex); 833 837 old_node->lnkcnt++; 838 futex_up(&nodes_futex); 834 839 /* Destroy the link for the old name. */ 835 840 rc = vfs_lookup_internal(oldc, L_UNLINK, NULL, NULL); … … 844 849 return; 845 850 } 851 futex_down(&nodes_futex); 846 852 old_node->lnkcnt--; 853 futex_up(&nodes_futex); 847 854 rwlock_write_unlock(&namespace_rwlock); 848 855 vfs_node_put(old_node);
Note:
See TracChangeset
for help on using the changeset viewer.