struct super_block {
struct list_head s_list;
dev_t s_dev;
unsigned long s_blocksize; //每个块的大小(单位是字节)
unsigned char s_blocksize_bits; //每个块的大小(单位是比特)
unsigned char s_dirt;
unsigned long long s_maxbytes; //文件大小上限
struct file_system_type *s_type; //文件系统类型
const struct super_operations *s_op;
struct dquot_operations *dq_op;
struct quotactl_ops *s_qcop;
const struct export_operations *s_export_op;
unsigned long s_flags;
unsigned long s_magic;
struct dentry *s_root;
struct rw_semaphore s_umount;
struct mutex s_lock;
int s_count;
int s_syncing;
int s_need_sync_fs;
atomic_t s_active;
#ifdef CONFIG_SECURITY
void *s_security;
#endif
struct xattr_handler **s_xattr;
struct list_head s_inodes; /* all inodes */
struct list_head s_dirty; /* dirty inodes */
struct list_head s_io; /* parked for writeback */
struct list_head s_more_io; /* parked for more writeback */
struct hlist_head s_anon; /* anonymous dentries for (nfs) exporting */
struct list_head s_files;
struct block_device *s_bdev;
struct mtd_info *s_mtd;
struct list_head s_instances;
struct quota_info s_dquot; /* Diskquota specific options */
//......省略部分代码
};
struct dentry {
atomic_t d_count;
unsigned int d_flags;
spinlock_t d_lock;
struct inode *d_inode; //和目录项相关联的索引节点
struct dentry *d_parent; //父目录项
struct qstr d_name;
struct list_head d_lru;
union {
struct list_head d_child;
struct rcu_head d_rcu;
} d_u;
struct list_head d_subdirs; //子目录链表
struct list_head d_alias;
unsigned long d_time;
struct dentry_operations *d_op;
struct super_block *d_sb;
void *d_fsdata;
#ifdef CONFIG_PROFILING
struct dcookie_struct *d_cookie;
#endif
int d_mounted;
unsigned char d_iname[DNAME_INLINE_LEN_MIN];
};