Skip to contentSkip to conversation

daily commit

PATCH 潘卫平(Peter Pan) 1 participant 1 message Aug 27, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 30 lines · Peter Pan(潘卫平)

From: Peter Pan<[email protected]>

---
  include/linux/fs.h |    7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)
include/linux/fs.h +2 -2
index 44f35ae..8382a33 100644
@@ -1335,7 +1335,7 @@ struct super_block {
  	struct mutex		s_lock;
  	int			s_count;
  	int			s_need_sync;
-	atomic_t		s_active;
+	atomic_t		s_active; // 活动引用计数
  #ifdef CONFIG_SECURITY
  	void                    *s_security;
  #endif
@@ -1343,7 +1343,7 @@ struct super_block {
 
  	struct list_head	s_inodes;	/* all inodes */
  	struct hlist_head	s_anon;		/* anonymous dentries for (nfs) exporting */
-	struct list_head	s_files;
+	struct list_head	s_files; // ????????被分区的文件链表????????
  	/* s_dentry_lru and s_nr_dentry_unused are protected by dcache_lock */
  	struct list_head	s_dentry_lru;	/* unused dentry lru */
  	int			s_nr_dentry_unused;	/* # of dentry on lru */

include/linux/fs.h struct super_block { · line 1365

Quoted 9 lines
include/linux/fs.h +2 -1
@@ -1358,7 +1358,8 @@ struct super_block {
  	wait_queue_head_t	s_wait_unfrozen;
 
  	char s_id[32];				/* Informational name */
-
+	
+	// 指向具体的文件系统。如ext2指向ext2_sb_info(即内存中的ext2_super_block)
  	void 			*s_fs_info;	/* Filesystem private info */
  	fmode_t			s_mode;
 

?????????????

Signature · 3 lines
潘卫平
Peter Pan
Red Flag Software Co.,Ltd