diff options
author | Nathan Scott <nathans@sgi.com> | 2005-11-01 23:11:45 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-01 23:11:45 -0500 |
commit | c11e2c369d06576c9e4a900a975cbfab5e7e3c53 (patch) | |
tree | 9b25f3214440d38b4b97807628ce9de5fd5062c1 /fs/xfs/xfs_mount.c | |
parent | 16259e7d952e26e949cc2c8c68b74f34b293935d (diff) |
[XFS] Rework fid encode/decode wrt 64 bit inums interacting with NFS.
SGI-PV: 937127
SGI-Modid: xfs-linux:xfs-kern:24201a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 9e861d0d3ee6..02b1892aaf74 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -316,7 +316,10 @@ xfs_mount_validate_sb( | |||
316 | } | 316 | } |
317 | 317 | ||
318 | xfs_agnumber_t | 318 | xfs_agnumber_t |
319 | xfs_initialize_perag(xfs_mount_t *mp, xfs_agnumber_t agcount) | 319 | xfs_initialize_perag( |
320 | struct vfs *vfs, | ||
321 | xfs_mount_t *mp, | ||
322 | xfs_agnumber_t agcount) | ||
320 | { | 323 | { |
321 | xfs_agnumber_t index, max_metadata; | 324 | xfs_agnumber_t index, max_metadata; |
322 | xfs_perag_t *pag; | 325 | xfs_perag_t *pag; |
@@ -332,7 +335,7 @@ xfs_initialize_perag(xfs_mount_t *mp, xfs_agnumber_t agcount) | |||
332 | /* Clear the mount flag if no inode can overflow 32 bits | 335 | /* Clear the mount flag if no inode can overflow 32 bits |
333 | * on this filesystem, or if specifically requested.. | 336 | * on this filesystem, or if specifically requested.. |
334 | */ | 337 | */ |
335 | if ((mp->m_flags & XFS_MOUNT_32BITINOOPT) && ino > max_inum) { | 338 | if ((vfs->vfs_flag & VFS_32BITINODES) && ino > max_inum) { |
336 | mp->m_flags |= XFS_MOUNT_32BITINODES; | 339 | mp->m_flags |= XFS_MOUNT_32BITINODES; |
337 | } else { | 340 | } else { |
338 | mp->m_flags &= ~XFS_MOUNT_32BITINODES; | 341 | mp->m_flags &= ~XFS_MOUNT_32BITINODES; |
@@ -944,7 +947,7 @@ xfs_mountfs( | |||
944 | mp->m_perag = | 947 | mp->m_perag = |
945 | kmem_zalloc(sbp->sb_agcount * sizeof(xfs_perag_t), KM_SLEEP); | 948 | kmem_zalloc(sbp->sb_agcount * sizeof(xfs_perag_t), KM_SLEEP); |
946 | 949 | ||
947 | mp->m_maxagi = xfs_initialize_perag(mp, sbp->sb_agcount); | 950 | mp->m_maxagi = xfs_initialize_perag(vfsp, mp, sbp->sb_agcount); |
948 | 951 | ||
949 | /* | 952 | /* |
950 | * log's mount-time initialization. Perform 1st part recovery if needed | 953 | * log's mount-time initialization. Perform 1st part recovery if needed |