[Ocfs2-commits] mfasheh commits r789 - in trunk/src: . inc

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Mar 18 16:23:53 CST 2004


Author: mfasheh
Date: 2004-03-18 16:23:51 -0600 (Thu, 18 Mar 2004)
New Revision: 789

Modified:
   trunk/src/inc/ocfs.h
   trunk/src/oin.c
Log:
* include a patch from Rusty Lynch <rusty at linux.co.intel.com>:

The following is a very simple patch to remove the needs_flush_list
list_head and in_needs_flush_list boolean members of ocfs_inode.

This is dead code.



Modified: trunk/src/inc/ocfs.h
===================================================================
--- trunk/src/inc/ocfs.h	2004-03-18 22:18:41 UTC (rev 788)
+++ trunk/src/inc/ocfs.h	2004-03-18 22:23:51 UTC (rev 789)
@@ -1838,7 +1838,6 @@
 	ocfs_obj_id obj_id;
 	struct inode *inode;
 	struct _ocfs_super *osb;	/* ocfs_inode belongs to this volume */
-	struct list_head needs_flush_list;
 	struct list_head recovery_list;
 	ocfs_sem main_res;
 	struct semaphore extend_sem;
@@ -1853,7 +1852,6 @@
 	__u32 oin_flags;
 	bool needs_verification;
 	bool cache_enabled;
-	bool in_needs_flush_list;
 	bool journal_inode;    /* is this the journal oin? */
 };
 

Modified: trunk/src/oin.c
===================================================================
--- trunk/src/oin.c	2004-03-18 22:18:41 UTC (rev 788)
+++ trunk/src/oin.c	2004-03-18 22:23:51 UTC (rev 789)
@@ -753,10 +753,6 @@
 		}
 
 		lockResource->oin = NULL;
-		if (oin->in_needs_flush_list) {
-			list_del (& (oin->needs_flush_list));
-			oin->in_needs_flush_list = false;
-		}
 		if (lockResource->in_cache_list) {
 			list_del (& (lockResource->cache_list));
 			lockResource->in_cache_list = false;



More information about the Ocfs2-commits mailing list