diff options
author | Dave Chinner <david@fromorbit.com> | 2014-08-03 23:54:14 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-08-03 23:54:14 -0400 |
commit | 4d7eece2c0dad832c5f224629eba3cced3f2d6cd (patch) | |
tree | cddf541ea3c2860aaea0fed1f57871d310c3c14e /fs/xfs/xfs_mount.c | |
parent | e0ac6d45bc52065d388b5aa153b58233af25a429 (diff) | |
parent | d5cf09baced0ef3d2cc118865079f8b129e98e2f (diff) |
Merge branch 'xfs-misc-fixes-3.17-1' into for-next
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 39d84d379bbd..5b639df0413e 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -176,13 +176,9 @@ xfs_sb_validate_fsb_count( | |||
176 | ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); | 176 | ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); |
177 | ASSERT(sbp->sb_blocklog >= BBSHIFT); | 177 | ASSERT(sbp->sb_blocklog >= BBSHIFT); |
178 | 178 | ||
179 | #if XFS_BIG_BLKNOS /* Limited by ULONG_MAX of page cache index */ | 179 | /* Limited by ULONG_MAX of page cache index */ |
180 | if (nblocks >> (PAGE_CACHE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) | 180 | if (nblocks >> (PAGE_CACHE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) |
181 | return -EFBIG; | 181 | return -EFBIG; |
182 | #else /* Limited by UINT_MAX of sectors */ | ||
183 | if (nblocks << (sbp->sb_blocklog - BBSHIFT) > UINT_MAX) | ||
184 | return -EFBIG; | ||
185 | #endif | ||
186 | return 0; | 182 | return 0; |
187 | } | 183 | } |
188 | 184 | ||
@@ -253,9 +249,9 @@ xfs_initialize_perag( | |||
253 | mp->m_flags &= ~XFS_MOUNT_32BITINODES; | 249 | mp->m_flags &= ~XFS_MOUNT_32BITINODES; |
254 | 250 | ||
255 | if (mp->m_flags & XFS_MOUNT_32BITINODES) | 251 | if (mp->m_flags & XFS_MOUNT_32BITINODES) |
256 | index = xfs_set_inode32(mp); | 252 | index = xfs_set_inode32(mp, agcount); |
257 | else | 253 | else |
258 | index = xfs_set_inode64(mp); | 254 | index = xfs_set_inode64(mp, agcount); |
259 | 255 | ||
260 | if (maxagi) | 256 | if (maxagi) |
261 | *maxagi = index; | 257 | *maxagi = index; |