gfs2: Switch to list_{first,last}_entry
[linux-2.6-microblaze.git] / fs / gfs2 / recovery.c
index 21fc44b..34dfdb2 100644 (file)
@@ -111,7 +111,7 @@ void gfs2_revoke_clean(struct gfs2_jdesc *jd)
        struct gfs2_revoke_replay *rr;
 
        while (!list_empty(head)) {
-               rr = list_entry(head->next, struct gfs2_revoke_replay, rr_list);
+               rr = list_first_entry(head, struct gfs2_revoke_replay, rr_list);
                list_del(&rr->rr_list);
                kfree(rr);
        }