summaryrefslogtreecommitdiff
path: root/fs.c
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-08-15 15:53:46 +0000
committerkaashoek <kaashoek>2006-08-15 15:53:46 +0000
commite958c538fa1e711479f09cab807a6a7cde5d8aeb (patch)
tree05b193a535691e31dd936954e4e824b7de700206 /fs.c
parentd7b3b802f414dbf18b5e196ab1a342b19d5f7be8 (diff)
downloadxv6-labs-e958c538fa1e711479f09cab807a6a7cde5d8aeb.tar.gz
xv6-labs-e958c538fa1e711479f09cab807a6a7cde5d8aeb.tar.bz2
xv6-labs-e958c538fa1e711479f09cab807a6a7cde5d8aeb.zip
commented out code for cwd
Diffstat (limited to 'fs.c')
-rw-r--r--fs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs.c b/fs.c
index 2370e0e..530ef03 100644
--- a/fs.c
+++ b/fs.c
@@ -287,6 +287,14 @@ idecref(struct inode *ip)
}
void
+iincref(struct inode *ip)
+{
+ ilock(ip);
+ ip->count++;
+ iunlock(ip);
+}
+
+void
stati(struct inode *ip, struct stat *st)
{
st->st_dev = ip->dev;