Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154271
b: refs/heads/master
c: 18d8594
h: refs/heads/master
i:
  154269: c848774
  154267: 2c6e5d2
  154263: c38549a
  154255: fef4f98
  154239: f0a9820
v: v3
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Jun 22, 2009
1 parent c369128 commit 5ea473e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: af4874e03ed82f050d5872d8c39ce64bf16b5c38
refs/heads/master: 18d8594dd93a1ae2fafd591ec026e87d743292bf
7 changes: 4 additions & 3 deletions trunk/drivers/md/dm-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,10 @@ static int create_log_context(struct dm_dirty_log *log, struct dm_target *ti,
/*
* Buffer holds both header and bitset.
*/
buf_size = dm_round_up((LOG_OFFSET << SECTOR_SHIFT) +
bitset_size,
ti->limits.logical_block_size);
buf_size =
dm_round_up((LOG_OFFSET << SECTOR_SHIFT) + bitset_size,
bdev_logical_block_size(lc->header_location.
bdev));

if (buf_size > i_size_read(dev->bdev->bd_inode)) {
DMWARN("log device %s too small: need %llu bytes",
Expand Down

0 comments on commit 5ea473e

Please sign in to comment.