Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305954
b: refs/heads/master
c: 15702d7
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed May 22, 2012
1 parent b87c192 commit 25f2a29
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 40cffcc0e8f9f6e295630cb8b8d58a13baa6c7f9
refs/heads/master: 15702d7fb6e7a6baf5a04286a227b0ad2fe4a03f
5 changes: 2 additions & 3 deletions trunk/drivers/md/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1694,9 +1694,8 @@ int bitmap_create(struct mddev *mddev)
bitmap->counts.chunkshift = (ffz(~mddev->bitmap_info.chunksize)
- BITMAP_BLOCK_SHIFT);

chunks = (blocks + (1 << bitmap->counts.chunkshift) - 1) >>
bitmap->counts.chunkshift;
pages = (chunks + PAGE_COUNTER_RATIO - 1) / PAGE_COUNTER_RATIO;
chunks = DIV_ROUND_UP_SECTOR_T(blocks, 1 << bitmap->counts.chunkshift);
pages = DIV_ROUND_UP(chunks, PAGE_COUNTER_RATIO);

BUG_ON(!pages);

Expand Down

0 comments on commit 25f2a29

Please sign in to comment.