patch-2.1.44 linux/include/linux/sched.h

Next file: linux/include/linux/selection.h
Previous file: linux/include/linux/rose.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -130,7 +130,7 @@
 struct fs_struct {
 	int count;
 	int umask;
-	struct inode * root, * pwd;
+	struct dentry * root, * pwd;
 };
 
 #define INIT_FS { \
@@ -519,12 +519,10 @@
 {
 	struct wait_queue * next = wait->next;
 	struct wait_queue * head = next;
+	struct wait_queue * tmp;
 
-	for (;;) {
-		struct wait_queue * nextlist = head->next;
-		if (nextlist == wait)
-			break;
-		head = nextlist;
+	while ((tmp = head->next) != wait) {
+		head = tmp;
 	}
 	head->next = next;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov