Skip to contentSkip to conversation

remove oin's needs_flush_list

PATCH In review Rusty Lynch 2 participants 2 messages Mar 18, 2004 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove oin's needs_flush_list

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.

    --rusty
oin.c +0 -4
Index: src/oin.c
===================================================================
@@ -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;
inc/ocfs.h +0 -2
Index: src/inc/ocfs.h
===================================================================
@@ -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? */
 };
 
#1 lore raw
Quoted 2 lines · Rusty Lynch

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.

Excellent, committed.

	--Mark

--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]