[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 15/22] lib/vfscore: remove _KERNEL ifdefs



All this code is running in kernel

Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
 lib/vfscore/include/vfscore/mount.h | 5 -----
 lib/vfscore/include/vfscore/vnode.h | 3 ---
 2 files changed, 8 deletions(-)

diff --git a/lib/vfscore/include/vfscore/mount.h 
b/lib/vfscore/include/vfscore/mount.h
index a1227cbe..fac7d954 100644
--- a/lib/vfscore/include/vfscore/mount.h
+++ b/lib/vfscore/include/vfscore/mount.h
@@ -37,8 +37,6 @@
 #include <uk/list.h>
 #include <vfscore/vnode.h>
 
-#ifdef _KERNEL
-
 /*
  * Mount data
  */
@@ -56,7 +54,6 @@ struct mount {
        fsid_t          m_fsid;         /* id that uniquely identifies the fs */
 };
 
-#endif
 
 /*
  * Mount flags.
@@ -95,8 +92,6 @@ struct mount {
  */
 #define        MNT_VISFLAGMASK 0x0000ffff
 
-#ifdef _KERNEL
-
 /*
  * Filesystem type switch table.
  */
diff --git a/lib/vfscore/include/vfscore/vnode.h 
b/lib/vfscore/include/vfscore/vnode.h
index 9388185a..9cdd3844 100644
--- a/lib/vfscore/include/vfscore/vnode.h
+++ b/lib/vfscore/include/vfscore/vnode.h
@@ -30,8 +30,6 @@
 #ifndef _SYS_VNODE_H_
 #define _SYS_VNODE_H_
 
-#ifdef _KERNEL
-
 #include <sys/stat.h>
 #include <dirent.h>
 
@@ -258,6 +256,5 @@ static inline void vnode_pager_setsize(struct vnode *vp, 
off_t size)
        vp->v_size = size;
 }
 
-#endif
 
 #endif /* !_SYS_VNODE_H_ */
-- 
2.19.2


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.