patch-2.4.17 linux/fs/nfs/pagelist.c

Next file: linux/fs/nfs/read.c
Previous file: linux/fs/nfs/nfs3proc.c
Back to the patch index
Back to the overall index

diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/fs/nfs/pagelist.c linux/fs/nfs/pagelist.c
@@ -187,7 +187,7 @@
 		BUG();
 	}
 #endif
-	for (pos = head->prev; pos != head; pos = pos->prev) {
+	list_for_each_prev(pos, head) {
 		struct nfs_page	*p = nfs_list_entry(pos);
 		if (page_index(p->wb_page) < pg_idx)
 			break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)