FS0 compiles with the changes, also caught an unparanthesised double-statement

if clause in lookup.c
This commit is contained in:
Bahadir Balban
2008-02-14 21:23:49 +00:00
parent b54a0f78e8
commit 329dc53982
6 changed files with 41 additions and 35 deletions

View File

@@ -84,10 +84,21 @@ struct dentry {
struct list_head child; /* List of dentries with same parent */
struct list_head children; /* List of children dentries */
struct list_head vref; /* For vnode's dirent reference list */
struct list_head cache_list; /* Dentry cache reference */
struct vnode *vnode; /* The vnode associated with dirent */
struct dentry_ops ops;
};
/*
* Buffer to keep directory content. This is the only vnode content
* that fs0 maintains. All other file data is in mm0 page cache.
*/
struct dirbuf {
unsigned long npages;
int dirty;
u8 *buffer;
};
struct vnode {
unsigned long vnum; /* Filesystem-wide unique vnode id */
int refcnt; /* Reference counter */

View File

@@ -5,15 +5,8 @@
#include <lib/malloc.h>
#include <l4/lib/list.h>
#include <memfs/memfs.h>
/* Buffer to keep directory content. This is the only vnode content
* that fs0 maintains. All other file data is in mm0 page cache.
*/
struct dirbuf {
unsigned long npages;
int dirty;
u8 *buf;
};
#include <l4/macros.h>
#include <stdio.h>
extern struct list_head vnode_cache;
extern struct list_head dentry_cache;