summaryrefslogtreecommitdiff
path: root/fs.c
diff options
context:
space:
mode:
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;