Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30346
b: refs/heads/master
c: 29121bd
h: refs/heads/master
v: v3
  • Loading branch information
Alasdair G Kergon authored and Linus Torvalds committed Jun 26, 2006
1 parent c7d7bdf commit df582c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: b7cca195c4cc051210f3e60a859b779ca833a2e4
refs/heads/master: 29121bd0b00ebb9524971a583fea4a2f7afe8041
4 changes: 2 additions & 2 deletions trunk/drivers/md/dm-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ static int create_log_context(struct dirty_log *log, struct dm_target *ti,
* Work out how many "unsigned long"s we need to hold the bitset.
*/
bitset_size = dm_round_up(region_count,
sizeof(unsigned long) << BYTE_SHIFT);
sizeof(*lc->clean_bits) << BYTE_SHIFT);
bitset_size >>= BYTE_SHIFT;

lc->bitset_uint32_count = bitset_size / 4;
lc->bitset_uint32_count = bitset_size / sizeof(*lc->clean_bits);

/*
* Disk log?
Expand Down

0 comments on commit df582c7

Please sign in to comment.