summaryrefslogtreecommitdiffstats
path: root/include/linux/smb_fs_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/smb_fs_i.h')
-rw-r--r--include/linux/smb_fs_i.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/smb_fs_i.h b/include/linux/smb_fs_i.h
new file mode 100644
index 000000000..b6e38fd18
--- /dev/null
+++ b/include/linux/smb_fs_i.h
@@ -0,0 +1,34 @@
+/*
+ * smb_fs_i.h
+ *
+ * Copyright (C) 1995 by Paal-Kr. Engstad and Volker Lendecke
+ *
+ */
+
+#ifndef _LINUX_SMB_FS_I
+#define _LINUX_SMB_FS_I
+
+#ifdef __KERNEL__
+#include <linux/smb.h>
+
+enum smb_inode_state {
+ SMB_INODE_VALID = 19, /* Inode currently in use */
+ SMB_INODE_LOOKED_UP, /* directly before iget */
+ SMB_INODE_CACHED, /* in a path to an inode which is in use */
+ SMB_INODE_INVALID
+};
+
+/*
+ * smb fs inode data (in memory only)
+ */
+struct smb_inode_info {
+ enum smb_inode_state state;
+ int nused; /* for directories:
+ number of references in memory */
+ struct smb_inode_info *dir;
+ struct smb_inode_info *next, *prev;
+ struct smb_dirent finfo;
+};
+
+#endif
+#endif