]> git.neil.brown.name Git - history.git/commitdiff
[XFS] Use list_move for moving pagebufs between lists, not list_add/list_del
authorNathan Scott <nathans@sgi.com>
Tue, 10 Feb 2004 00:39:10 +0000 (11:39 +1100)
committerNathan Scott <nathans@sgi.com>
Tue, 10 Feb 2004 00:39:10 +0000 (11:39 +1100)
SGI Modid: xfs-linux:xfs-kern:166046a

fs/xfs/linux/xfs_buf.c

index e988ee296ea2d4e5a2f320bc8bccf163e6e649ce..5c9a41c309d3cfefa80ec7d0da13e5c0d0459d5a 100644 (file)
@@ -1741,10 +1741,7 @@ pagebuf_daemon(
 
                                pb->pb_flags &= ~PBF_DELWRI;
                                pb->pb_flags |= PBF_WRITE;
-
-                               list_del(&pb->pb_list);
-                               list_add(&pb->pb_list, &tmp);
-
+                               list_move(&pb->pb_list, &tmp);
                                count++;
                        }
                }