Nucleus
Barry Ordered object lists 74ee43c (3 years, 2 months ago)
diff --git a/vfs/inode.c b/vfs/inode.c
index e4ed8a8..8197127 100644
--- a/vfs/inode.c
+++ b/vfs/inode.c
@@ -33,8 +33,8 @@ static void
inode_new(Object *obj)
{
Inode *inode = (void *) obj;
- inode->dirEntries = create_list(&dirEntryType);
- inode->pages = create_list(&pageType);
+ inode->dirEntries = create_list(&dirEntryType, LIST_NORMAL);
+ inode->pages = create_list(&pageType, LIST_NORMAL);
}
/* Destroy an Inode */
diff --git a/vfs/namespace.c b/vfs/namespace.c
index 638453f..1b102af 100644
--- a/vfs/namespace.c
+++ b/vfs/namespace.c
@@ -25,7 +25,7 @@ static void
file_system_new(Object *obj)
{
FileSystem *fs = (void *) obj;
- fs->cwdPath = create_list(&dirEntryType);
+ fs->cwdPath = create_list(&dirEntryType, LIST_NORMAL);
}
/* Destory a File System object */
diff --git a/vfs/open.c b/vfs/open.c
index ff7fd01..9dd8978 100644
--- a/vfs/open.c
+++ b/vfs/open.c
@@ -32,7 +32,7 @@ lookup(const char *path, ObjectList *newcustody)
if (*p == '/') {
inode = current->fs->root;
while (*++p == '/');
- custody = create_list(&dirEntryType);
+ custody = create_list(&dirEntryType, LIST_NORMAL);
} else {
inode = current->fs->cwd;
custody = copy_list(current->fs->cwdPath);
@@ -125,7 +125,7 @@ open(const char *name, int flags, ...)
return -EMFILE;
/* Find inode */
- ObjectList *custody = create_list(&dirEntryType);
+ ObjectList *custody = create_list(&dirEntryType, LIST_NORMAL);
Inode *inode = lookup(name, custody);
DirEntry *entry;
va_list args;
@@ -197,7 +197,7 @@ mkdir(const char *pathname, mode_t mode)
if (!verify_access(pathname, strnlen(pathname, PATH_MAX), PROT_READ))
return -EFAULT;
int err;
- ObjectList *custody = create_list(&dirEntryType);
+ ObjectList *custody = create_list(&dirEntryType, LIST_NORMAL);
Inode *inode = lookup(pathname, custody);
if (inode) {
err = -EEXIST;
@@ -235,7 +235,7 @@ mknod(const char *pathname, mode_t mode, dev_t dev)
if (!verify_access(pathname, strnlen(pathname, PATH_MAX), PROT_READ))
return -EFAULT;
int err;
- ObjectList *custody = create_list(&dirEntryType);
+ ObjectList *custody = create_list(&dirEntryType, LIST_NORMAL);
Inode *inode = lookup(pathname, custody);
if (inode) {
err = -EEXIST;
diff --git a/vfs/superblock.c b/vfs/superblock.c
index 6c3776f..94100aa 100644
--- a/vfs/superblock.c
+++ b/vfs/superblock.c
@@ -25,7 +25,7 @@ static void
super_block_new(Object *obj)
{
SuperBlock *sb = (void *) obj;
- sb->inodes = create_list(&inodeType);
+ sb->inodes = create_list(&inodeType, LIST_NORMAL);
}
/* Destroy SuperBlock object */