diff options
author | Nathan Scott <nathans@sgi.com> | 2006-09-28 01:03:53 (GMT) |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2006-09-28 01:03:53 (GMT) |
commit | 68c3271515f11f6665dc8732e53aaab3d3fdd7d3 (patch) | |
tree | 18d8c9996da0666efbf8bb1edbb7ad5b1011f491 /fs/xfs/linux-2.6/xfs_linux.h | |
parent | d432c80e68e3c283fc9a85021f5b65e0aabf254e (diff) | |
download | linux-68c3271515f11f6665dc8732e53aaab3d3fdd7d3.tar.xz |
[XFS] Fix a porting botch on the realtime subvol growfs code path.
SGI-PV: 955515
SGI-Modid: xfs-linux-melb:xfs-kern:26806a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_linux.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_linux.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_linux.h b/fs/xfs/linux-2.6/xfs_linux.h index 14d8402..2b0e001 100644 --- a/fs/xfs/linux-2.6/xfs_linux.h +++ b/fs/xfs/linux-2.6/xfs_linux.h @@ -332,4 +332,11 @@ static inline __uint64_t roundup_64(__uint64_t x, __uint32_t y) return(x * y); } +static inline __uint64_t howmany_64(__uint64_t x, __uint32_t y) +{ + x += y - 1; + do_div(x, y); + return x; +} + #endif /* __XFS_LINUX__ */ |