shuffle fs.c in bottom-up order

This commit is contained in:
rsc 2007-08-20 18:23:52 +00:00
parent 0655445ba9
commit bcca6c6bde
5 changed files with 324 additions and 328 deletions

2
defs.h
View file

@ -120,7 +120,6 @@ void bwrite(struct buf*, uint);
void brelse(struct buf*);
// fs.c
extern uint rootdev;
void iinit(void);
struct inode* iget(uint, uint);
void ilock(struct inode*);
@ -138,6 +137,7 @@ struct inode* mknod1(struct inode*, char*, short, short, short);
int unlink(char*);
void iupdate(struct inode*);
int link(char*, char*);
struct inode* igetroot(void);
// number of elements in fixed-size array
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))