Rev 4370 | Rev 4424 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4370 | Rev 4409 | ||
---|---|---|---|
Line 248... | Line 248... | ||
248 | nodep->bp = malloc(sizeof(fs_node_t)); |
248 | nodep->bp = malloc(sizeof(fs_node_t)); |
249 | if (!nodep->bp) { |
249 | if (!nodep->bp) { |
250 | free(nodep); |
250 | free(nodep); |
251 | return NULL; |
251 | return NULL; |
252 | } |
252 | } |
- | 253 | fs_node_initialize(nodep->bp); |
|
253 | nodep->bp->data = nodep; /* link the FS and TMPFS nodes */ |
254 | nodep->bp->data = nodep; /* link the FS and TMPFS nodes */ |
254 | if (!tmpfs_root_get(dev_handle)) |
255 | if (!tmpfs_root_get(dev_handle)) |
255 | nodep->index = TMPFS_SOME_ROOT; |
256 | nodep->index = TMPFS_SOME_ROOT; |
256 | else |
257 | else |
257 | nodep->index = tmpfs_next_index++; |
258 | nodep->index = tmpfs_next_index++; |