1 /* 2 * smb_fs_i.h 3 * 4 * Copyright (C) 1995 by Paal-Kr. Engstad and Volker Lendecke 5 * 6 */ 7 8 #ifndef _LINUX_SMB_FS_I 9 #define _LINUX_SMB_FS_I 10 11 #ifdef __KERNEL__ 12 #include <linux/smb.h> 13 14 enum smb_inode_state { 15 INODE_VALID = 19, /* Inode currently in use */ 16 INODE_LOOKED_UP, /* directly before iget */ 17 INODE_CACHED, /* in a path to an inode which is in use */ 18 INODE_INVALID 19 }; 20 21 /* 22 * smb fs inode data (in memory only) 23 */ 24 struct smb_inode_info { 25 enum smb_inode_state state; 26 int nused; /* for directories: 27 number of references in memory */ 28 struct smb_inode_info *dir; 29 struct smb_inode_info *next, *prev; 30 struct smb_dirent finfo; 31 }; 32 33 #endif 34 #endif 35 36 /* 37 * Overrides for Emacs so that we follow Linus's tabbing style. 38 * Emacs will notice this stuff at the end of the file and automatically 39 * adjust the settings for this buffer only. This must remain at the end 40 * of the file. 41 * --------------------------------------------------------------------------- 42 * Local variables: 43 * c-indent-level: 8 44 * c-brace-imaginary-offset: 0 45 * c-brace-offset: -8 46 * c-argdecl-indent: 8 47 * c-label-offset: -8 48 * c-continued-statement-offset: 8 49 * c-continued-brace-offset: 0 50 * End: 51 */