xfs: use i_prev_unlinked to distinguish inodes that are not on the unlinked list
[linux-2.6-microblaze.git] / fs / xfs / xfs_inode.c
index 7b11059..475de8f 100644 (file)
@@ -2014,6 +2014,7 @@ xfs_iunlink_insert_inode(
        }
 
        /* Point the head of the list to point to this inode. */
+       ip->i_prev_unlinked = NULLAGINO;
        return xfs_iunlink_update_bucket(tp, pag, agibp, bucket_index, agino);
 }
 
@@ -2116,7 +2117,7 @@ xfs_iunlink_remove_inode(
        }
 
        ip->i_next_unlinked = NULLAGINO;
-       ip->i_prev_unlinked = NULLAGINO;
+       ip->i_prev_unlinked = 0;
        return error;
 }