Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196847
b: refs/heads/master
c: fd76438
h: refs/heads/master
i:
  196845: f2b7fd4
  196843: cacc340
  196839: 0b41a46
  196831: 2bdd173
v: v3
  • Loading branch information
Philipp Reisner committed May 17, 2010
1 parent 6dec9dd commit a3134eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e89b591c3aba0af87f5248b15f56ce7a4f439c16
refs/heads/master: fd76438c2421324fa2fb9303e760ec5332ff0b58
6 changes: 6 additions & 0 deletions trunk/drivers/block/drbd/drbd_bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ struct drbd_bitmap {
#define BM_MD_IO_ERROR 1
#define BM_P_VMALLOCED 2

int __bm_change_bits_to(struct drbd_conf *mdev, const unsigned long s,
unsigned long e, int val, const enum km_type km);

static int bm_is_locked(struct drbd_bitmap *b)
{
return test_bit(BM_LOCKED, &b->bm_flags);
Expand Down Expand Up @@ -529,6 +532,9 @@ 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 a3134eb

Please sign in to comment.