diff options
author | Shaun Zinck <shaun.zinck@gmail.com> | 2007-08-31 19:57:28 +0200 |
---|---|---|
committer | Dave Kleikamp <shaggy@linux.vnet.ibm.com> | 2008-01-03 20:11:59 +0100 |
commit | a7fe0ba7eee4f7c53077ff2bed2b581db17d00df (patch) | |
tree | deb781f85fb5adfd7b4370de8563331b9026bc58 /fs/jfs/resize.c | |
parent | Remove unnecessary kmalloc casts in the jfs filesystem (diff) | |
download | linux-a7fe0ba7eee4f7c53077ff2bed2b581db17d00df.tar.xz linux-a7fe0ba7eee4f7c53077ff2bed2b581db17d00df.zip |
JFS: use DIV_ROUND_UP where appropriate
This replaces some macros and code, which do the same thing as DIV_ROUND_UP
defined in kernel.h, to use the DIV_ROUND_UP macro.
Signed-off-by: Shaun Zinck <shaun.zinck@gmail.com>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Diffstat (limited to 'fs/jfs/resize.c')
-rw-r--r-- | fs/jfs/resize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/resize.c b/fs/jfs/resize.c index 71984ee95346..7f24a0bb08ca 100644 --- a/fs/jfs/resize.c +++ b/fs/jfs/resize.c @@ -172,7 +172,7 @@ int jfs_extendfs(struct super_block *sb, s64 newLVSize, int newLogSize) */ t64 = ((newLVSize - newLogSize + BPERDMAP - 1) >> L2BPERDMAP) << L2BPERDMAP; - t32 = ((t64 + (BITSPERPAGE - 1)) / BITSPERPAGE) + 1 + 50; + t32 = DIV_ROUND_UP(t64, BITSPERPAGE) + 1 + 50; newFSCKSize = t32 << sbi->l2nbperpage; newFSCKAddress = newLogAddress - newFSCKSize; |