Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262187
b: refs/heads/master
c: c8f543e
h: refs/heads/master
i:
  262185: 39af63f
  262183: ffd08e7
v: v3
  • Loading branch information
Akinobu Mita authored and Alasdair G Kergon committed Aug 2, 2011
1 parent e0dcfae commit 0b5b637
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 936688d7eb0f39be96c5791be1a04994cc8d6aa0
refs/heads/master: c8f543e0786785d8c7118fc2878e42bc0193a88d
9 changes: 4 additions & 5 deletions trunk/drivers/md/dm-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,20 +257,20 @@ struct log_c {
*/
static inline int log_test_bit(uint32_t *bs, unsigned bit)
{
return test_bit_le(bit, (unsigned long *) bs) ? 1 : 0;
return test_bit_le(bit, bs) ? 1 : 0;
}

static inline void log_set_bit(struct log_c *l,
uint32_t *bs, unsigned bit)
{
__test_and_set_bit_le(bit, (unsigned long *) bs);
__set_bit_le(bit, bs);
l->touched_cleaned = 1;
}

static inline void log_clear_bit(struct log_c *l,
uint32_t *bs, unsigned bit)
{
__test_and_clear_bit_le(bit, (unsigned long *) bs);
__clear_bit_le(bit, bs);
l->touched_dirtied = 1;
}

Expand Down Expand Up @@ -745,8 +745,7 @@ static int core_get_resync_work(struct dm_dirty_log *log, region_t *region)
return 0;

do {
*region = find_next_zero_bit_le(
(unsigned long *) lc->sync_bits,
*region = find_next_zero_bit_le(lc->sync_bits,
lc->region_count,
lc->sync_search);
lc->sync_search = *region + 1;
Expand Down

0 comments on commit 0b5b637

Please sign in to comment.