git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into prog-loader
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
vfs.c
diff --git
a/lunaix-os/kernel/fs/vfs.c
b/lunaix-os/kernel/fs/vfs.c
index e436eba969c1fea7e88a863adf9e518e579b7514..8a4a8a17e0a9f148f0307e2b6f32f43b27d0558f 100644
(file)
--- a/
lunaix-os/kernel/fs/vfs.c
+++ b/
lunaix-os/kernel/fs/vfs.c
@@
-56,7
+56,7
@@
#include <lunaix/fs/twifs.h>
#include <lunaix/fs/twifs.h>
-#include <
usr/
sys/dirent_defs.h>
+#include <sys/dirent_defs.h>
static struct cake_pile* dnode_pile;
static struct cake_pile* inode_pile;
static struct cake_pile* dnode_pile;
static struct cake_pile* inode_pile;
@@
-1225,6
+1225,12
@@
done:
return DO_STATUS(errno);
}
return DO_STATUS(errno);
}
+void
+vfs_ref_file(struct v_file* file)
+{
+ atomic_fetch_add(&file->ref_count, 1);
+}
+
void
vfs_ref_dnode(struct v_dnode* dnode)
{
void
vfs_ref_dnode(struct v_dnode* dnode)
{