]> git.hungrycats.org Git - linux/commitdiff
[XFS] Convert to list_for_each_entry_safe form in reclaim list walk.
authorNathan Scott <nathans@sgi.com>
Tue, 28 Sep 2004 23:29:27 +0000 (09:29 +1000)
committerNathan Scott <nathans@sgi.com>
Tue, 28 Sep 2004 23:29:27 +0000 (09:29 +1000)
SGI Modid: xfs-linux:xfs-kern:178673a
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/xfs_vnodeops.c

index 69c7fdcd38ec2d077a043ea3ef175d153975fff2..bf14862bf248dc5e8668a19976366af93adc2fab 100644 (file)
@@ -3954,15 +3954,13 @@ int
 xfs_finish_reclaim_all(xfs_mount_t *mp, int noblock)
 {
        int             purged;
-       struct list_head        *curr, *next;
-       xfs_inode_t     *ip;
+       xfs_inode_t     *ip, *n;
        int             done = 0;
 
        while (!done) {
                purged = 0;
                XFS_MOUNT_ILOCK(mp);
-               list_for_each_safe(curr, next, &mp->m_del_inodes) {
-                       ip = list_entry(curr, xfs_inode_t, i_reclaim);
+               list_for_each_entry_safe(ip, n, &mp->m_del_inodes, i_reclaim) {
                        if (noblock) {
                                if (xfs_ilock_nowait(ip, XFS_ILOCK_EXCL) == 0)
                                        continue;