summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2007-06-18 09:57:45 +0200
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-07-14 07:36:08 +0200
commit39726be2a2e6e61f352852da2c3a807773e33346 (patch)
tree83d73ec037347aee0808a9407b0c9d7c587bd8f8 /fs/xfs/xfs_mount.c
parent[XFS] Fix remount,readonly path to flush everything correctly. (diff)
downloadlinux-39726be2a2e6e61f352852da2c3a807773e33346.tar.xz
linux-39726be2a2e6e61f352852da2c3a807773e33346.zip
[XFS] Use do_div() on 64 bit types.
SGI-PV: 966145 SGI-Modid: xfs-linux-melb:xfs-kern:28889a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 31453ca0f3dd..a66b39805176 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -1154,7 +1154,9 @@ xfs_mountfs(
* This may drive us straight to ENOSPC on mount, but that implies
* we were already there on the last unmount.
*/
- resblks = min_t(__uint64_t, mp->m_sb.sb_dblocks / 20, 1024);
+ resblks = mp->m_sb.sb_dblocks;
+ do_div(resblks, 20);
+ resblks = min_t(__uint64_t, resblks, 1024);
xfs_reserve_blocks(mp, &resblks, NULL);
return 0;