Rev 2756 | Rev 2758 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2756 | Rev 2757 | ||
---|---|---|---|
Line 184... | Line 184... | ||
184 | static bool tmpfs_init(void) |
184 | static bool tmpfs_init(void) |
185 | { |
185 | { |
186 | if (!hash_table_create(&dentries, DENTRIES_BUCKETS, 1, &dentries_ops)) |
186 | if (!hash_table_create(&dentries, DENTRIES_BUCKETS, 1, &dentries_ops)) |
187 | return false; |
187 | return false; |
188 | root = (tmpfs_dentry_t *) tmpfs_create_node(L_DIRECTORY); |
188 | root = (tmpfs_dentry_t *) tmpfs_create_node(L_DIRECTORY); |
- | 189 | root->lnkcnt = 1; |
|
189 | return root != NULL; |
190 | return root != NULL; |
190 | } |
191 | } |
191 | 192 | ||
192 | /** Compare one component of path to a directory entry. |
193 | /** Compare one component of path to a directory entry. |
193 | * |
194 | * |