[PATCH] replace list_for_each with list_for_each_entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Additional replace of list_for_each with list_for_each_entry (which
crept in) as requested by Cristoph Hellwig in
http://lkml.org/lkml/2005/9/16/134
Signed-off-by: Dushan Tcholich <dusanc@xxxxxxxxx>
--- reiser4-for-2.6.22-2.patch.orig	2007-10-22 23:01:21.000000000 +0200
+++ reiser4-for-2.6.22-2-listforeach.patch	2007-10-28 21:20:55.000000000 +0100
@@ -15049,7 +15049,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/f
 +	list_for_each_entry(fq, &atom->flush_queues, alink) {
 +		spin_lock(&(fq->guard));
 +		/* calculate number of jnodes on fq' list of prepped jnodes */
-+		list_for_each(pos, ATOM_FQ_LIST(fq))
++		list_for_each_entry(pos, ATOM_FQ_LIST(fq))
 +			count++;
 +		spin_unlock(&(fq->guard));
 +	}
@@ -23716,7 +23716,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/l
 +{
 +	struct list_head *pos;
 +
-+	list_for_each(pos, head)
++	list_for_each_entry(pos, head)
 +		assert("", (pos->prev != NULL && pos->next != NULL &&
 +			    pos->prev->next == pos && pos->next->prev == pos));
 +}
@@ -74891,7 +74891,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/t
 +		/* dirty list */
 +		count = 0;
 +		for (level = 0; level < REAL_MAX_ZTREE_HEIGHT + 1; level += 1) {
-+			list_for_each(pos, ATOM_DIRTY_LIST(atom, level))
++			list_for_each_entry(pos, ATOM_DIRTY_LIST(atom, level))
 +				count++;
 +		}
 +		if (count != atom->dirty)
@@ -74900,7 +74900,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/t
 +
 +		/* clean list */
 +		count = 0;
-+		list_for_each(pos, ATOM_CLEAN_LIST(atom))
++		list_for_each_entry(pos, ATOM_CLEAN_LIST(atom))
 +			count++;
 +		if (count != atom->clean)
 +			warning("", "clean counter %d, real %d\n", atom->clean,
@@ -74908,7 +74908,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/t
 +
 +		/* wb list */
 +		count = 0;
-+		list_for_each(pos, ATOM_WB_LIST(atom))
++		list_for_each_entry(pos, ATOM_WB_LIST(atom))
 +			count++;
 +		if (count != atom->wb)
 +			warning("", "wb counter %d, real %d\n", atom->wb,
@@ -74916,7 +74916,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/t
 +
 +		/* overwrite list */
 +		count = 0;
-+		list_for_each(pos, ATOM_OVRWR_LIST(atom))
++		list_for_each_entry(pos, ATOM_OVRWR_LIST(atom))
 +			count++;
 +
 +		if (count != atom->ovrwr)

[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux