From 48755214c9a02d6249caf3126d3b41d67eda4730 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 30 Aug 2009 23:02:08 -0700 Subject: assorted fixes: * rename c/cp to cpu/proc * rename cpu.context to cpu.scheduler * fix some comments * formatting for printout --- fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs.c') diff --git a/fs.c b/fs.c index 15b0bfe..19843e6 100644 --- a/fs.c +++ b/fs.c @@ -109,7 +109,7 @@ bfree(int dev, uint b) // to inodes shared between multiple processes. // // ip->ref counts the number of pointer references to this cached -// inode; references are typically kept in struct file and in cp->cwd. +// inode; references are typically kept in struct file and in proc->cwd. // When ip->ref falls to zero, the inode is no longer cached. // It is an error to use an inode without holding a reference to it. // @@ -578,7 +578,7 @@ namex(char *path, int nameiparent, char *name) if(*path == '/') ip = iget(ROOTDEV, ROOTINO); else - ip = idup(cp->cwd); + ip = idup(proc->cwd); while((path = skipelem(path, name)) != 0){ ilock(ip); -- cgit v1.2.3