summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-02-28 22:12:44 -0500
committerIan Moffett <ian@osmora.org>2024-02-28 22:12:44 -0500
commit4e5adb9e6f34dca3cfe762523eb52780dba72cf6 (patch)
tree5857be2ea7166e535c8c9a11b9905603d8b4c98b
parent26bc325d72632bf7995223910fa83c8f40af08c8 (diff)
kernel: vfs: Move mountlist_entry to vfs_cache.c
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/include/sys/mount.h9
-rw-r--r--sys/kern/vfs_cache.c8
2 files changed, 8 insertions, 9 deletions
diff --git a/sys/include/sys/mount.h b/sys/include/sys/mount.h
index 014ce89..86581f2 100644
--- a/sys/include/sys/mount.h
+++ b/sys/include/sys/mount.h
@@ -61,15 +61,6 @@ struct fs_info {
#define MNT_RDONLY 0x00000001
#if defined(_KERNEL)
-
-/* For caching */
-#define MOUNTLIST_SIZE 8
-
-/* Mountlist cache entry */
-struct mountlist_entry {
- TAILQ_HEAD(, mount) buckets;
-};
-
int vfs_mount(struct mount **mp_out, const char *path, int mnt_flags);
#endif /* defined(_KERNEL) */
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 1e051df..7586325 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -35,6 +35,14 @@
#include <vm/dynalloc.h>
#include <assert.h>
+/* For caching */
+#define MOUNTLIST_SIZE 8
+
+/* Mountlist cache entry */
+struct mountlist_entry {
+ TAILQ_HEAD(, mount) buckets;
+};
+
static struct mountlist_entry *mountlist = NULL;
/*