Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329044
b: refs/heads/master
c: 4056c1d
h: refs/heads/master
v: v3
  • Loading branch information
Carlos Maiolino authored and Ben Myers committed Sep 26, 2012
1 parent ba710ec commit f6efc0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c0837224c677db35cd85b04a77504c496cadb66
refs/heads/master: 4056c1d08d2a7c50ae7414db7c1783ba45b4835d
15 changes: 12 additions & 3 deletions trunk/fs/xfs/xfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ xfs_agnumber_t
xfs_set_inode32(struct xfs_mount *mp)
{
xfs_agnumber_t index = 0;
xfs_agnumber_t maxagi = 0;
xfs_sb_t *sbp = &mp->m_sb;
xfs_agnumber_t max_metadata;
xfs_agino_t agino = XFS_OFFBNO_TO_AGINO(mp, sbp->sb_agblocks -1, 0);
Expand All @@ -626,18 +627,26 @@ xfs_set_inode32(struct xfs_mount *mp)

for (index = 0; index < sbp->sb_agcount; index++) {
ino = XFS_AGINO_TO_INO(mp, index, agino);

if (ino > XFS_MAXINUMBER_32) {
index++;
break;
pag = xfs_perag_get(mp, index);
pag->pagi_inodeok = 0;
pag->pagf_metadata = 0;
xfs_perag_put(pag);
continue;
}

pag = xfs_perag_get(mp, index);
pag->pagi_inodeok = 1;
maxagi++;
if (index < max_metadata)
pag->pagf_metadata = 1;
xfs_perag_put(pag);
}
return index;
mp->m_flags |= (XFS_MOUNT_32BITINODES |
XFS_MOUNT_SMALL_INUMS);

return maxagi;
}

xfs_agnumber_t
Expand Down

0 comments on commit f6efc0d

Please sign in to comment.