Commit 3f0501fe authored by Dave Jones's avatar Dave Jones

[PATCH] list macro conversion.

Use listwalking macro..
parent b9e7a18d
...@@ -196,7 +196,7 @@ nfs_list_add_request(struct nfs_page *req, struct list_head *head) ...@@ -196,7 +196,7 @@ nfs_list_add_request(struct nfs_page *req, struct list_head *head)
BUG(); BUG();
} }
#endif #endif
for (pos = head->prev; pos != head; pos = pos->prev) { list_for_each_prev(pos, head) {
struct nfs_page *p = nfs_list_entry(pos); struct nfs_page *p = nfs_list_entry(pos);
if (page_index(p->wb_page) < pg_idx) if (page_index(p->wb_page) < pg_idx)
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment