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>
This commit is contained in:

committed by
Dave Kleikamp

parent
1eb3a711d6
commit
a7fe0ba7ee
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user