~ubuntu-branches/ubuntu/utopic/xfsprogs/utopic-proposed

« back to all changes in this revision

Viewing changes to repair/phase3.c

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Scott
  • Date: 2009-05-06 11:29:18 UTC
  • mfrom: (8.1.1 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090506112918-uzoyzcp90rtr8td7
Tags: 3.0.2
New bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
                                }
92
92
                                pthread_mutex_unlock(&ag_locks[agno]);
93
93
                        }
94
 
                        current_ino = dip->di_next_unlinked;
 
94
                        current_ino = be32_to_cpu(dip->di_next_unlinked);
95
95
                } else  {
96
96
                        current_ino = NULLAGINO;;
97
97
                }
119
119
 
120
120
        agip = XFS_BUF_TO_AGI(bp);
121
121
 
122
 
        ASSERT(no_modify || INT_GET(agip->agi_seqno, ARCH_CONVERT) == agno);
 
122
        ASSERT(no_modify || be32_to_cpu(agip->agi_seqno) == agno);
123
123
 
124
124
        for (i = 0; i < XFS_AGI_UNLINKED_BUCKETS; i++)  {
125
 
                if (INT_GET(agip->agi_unlinked[i], ARCH_CONVERT) != NULLAGINO)  {
126
 
                        err += walk_unlinked_list(mp, agno, INT_GET(
127
 
                                        agip->agi_unlinked[i], ARCH_CONVERT));
 
125
                if (be32_to_cpu(agip->agi_unlinked[i]) != NULLAGINO)  {
 
126
                        err += walk_unlinked_list(mp, agno,
 
127
                                        be32_to_cpu(agip->agi_unlinked[i]));
128
128
                        /*
129
129
                         * clear the list
130
130
                         */
131
131
                        if (!no_modify)  {
132
 
                                INT_SET(agip->agi_unlinked[i], ARCH_CONVERT,
133
 
                                        NULLAGINO);
 
132
                                agip->agi_unlinked[i] = cpu_to_be32(NULLAGINO);
134
133
                                agi_dirty = 1;
135
134
                        }
136
135
                }