Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76103
b: refs/heads/master
c: a7fe0ba
h: refs/heads/master
i:
  76101: c64ba8d
  76099: 42946cb
  76095: b90b586
v: v3
  • Loading branch information
Shaun Zinck authored and Dave Kleikamp committed Jan 3, 2008
1 parent 7ac302c commit 919c94b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1eb3a711d6a1c8a4697a2e89d09048353b8aefd3
refs/heads/master: a7fe0ba7eee4f7c53077ff2bed2b581db17d00df
4 changes: 2 additions & 2 deletions trunk/fs/jfs/jfs_dtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct idtentry {
#define DTIHDRDATALEN 11

/* compute number of slots for entry */
#define NDTINTERNAL(klen) ( ((4 + (klen)) + (15 - 1)) / 15 )
#define NDTINTERNAL(klen) (DIV_ROUND_UP((4 + (klen)), 15))


/*
Expand Down Expand Up @@ -133,7 +133,7 @@ struct dir_table_slot {
( ((s64)((dts)->addr1)) << 32 | __le32_to_cpu((dts)->addr2) )

/* compute number of slots for entry */
#define NDTLEAF_LEGACY(klen) ( ((2 + (klen)) + (15 - 1)) / 15 )
#define NDTLEAF_LEGACY(klen) (DIV_ROUND_UP((2 + (klen)), 15))
#define NDTLEAF NDTINTERNAL


Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/jfs/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 919c94b

Please sign in to comment.