Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196852
b: refs/heads/master
c: 5223671
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Reisner committed May 17, 2010
1 parent 2efc68b commit 5ec0e0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 6b4388ac1f282515db3a651707238cad00b50e80
refs/heads/master: 5223671bb0315d83f9ad7becbbb9e703aa735bbe
5 changes: 1 addition & 4 deletions trunk/drivers/block/drbd/drbd_bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ int drbd_bm_resize(struct drbd_conf *mdev, sector_t capacity, int set_new_bits)
obits = b->bm_bits;

growing = bits > obits;
if (opages)
if (opages && growing && set_new_bits)
bm_set_surplus(b);

b->bm_pages = npages;
Expand All @@ -532,9 +532,6 @@ int drbd_bm_resize(struct drbd_conf *mdev, sector_t capacity, int set_new_bits)
if (set_new_bits) {
bm_memset(b, owords, 0xff, words-owords);
b->bm_set += bits - obits;
__bm_change_bits_to(mdev, obits,
ALIGN(obits, BITS_PER_LONG),
1, KM_IRQ1);
} else
bm_memset(b, owords, 0x00, words-owords);

Expand Down

0 comments on commit 5ec0e0c

Please sign in to comment.