* fix an issue that execve attempts to parse directory as elf file.
[lunaix-os.git] / lunaix-os / includes / lunaix / fs.h
index 0e2169e7c9f54d54acb679960659289ccf5afc62..0240c96a4ddc8348597b3096734f18477c95f7ad 100644 (file)
@@ -298,6 +298,12 @@ struct pcache_pg
     u32_t len;
 };
 
     u32_t len;
 };
 
+static inline bool
+check_itype_any(struct v_inode* inode, unsigned int type_mask)
+{
+    return !!(inode->itype & type_mask) || !type_mask;
+}
+
 void
 fsm_init();
 
 void
 fsm_init();