• Home
  • Raw
  • Download

Lines Matching refs:bm_fo

1255 static unsigned long __bm_find_next(struct drbd_device *device, unsigned long bm_fo,  in __bm_find_next()  argument
1264 if (bm_fo > b->bm_bits) { in __bm_find_next()
1265 drbd_err(device, "bm_fo=%lu bm_bits=%lu\n", bm_fo, b->bm_bits); in __bm_find_next()
1266 bm_fo = DRBD_END_OF_BITMAP; in __bm_find_next()
1268 while (bm_fo < b->bm_bits) { in __bm_find_next()
1270 bit_offset = bm_fo & ~BITS_PER_PAGE_MASK; in __bm_find_next()
1271 p_addr = __bm_map_pidx(b, bm_bit_to_page_idx(b, bm_fo)); in __bm_find_next()
1275 PAGE_SIZE*8, bm_fo & BITS_PER_PAGE_MASK); in __bm_find_next()
1278 PAGE_SIZE*8, bm_fo & BITS_PER_PAGE_MASK); in __bm_find_next()
1282 bm_fo = bit_offset + i; in __bm_find_next()
1283 if (bm_fo >= b->bm_bits) in __bm_find_next()
1287 bm_fo = bit_offset + PAGE_SIZE*8; in __bm_find_next()
1289 bm_fo = DRBD_END_OF_BITMAP; in __bm_find_next()
1292 return bm_fo; in __bm_find_next()
1296 unsigned long bm_fo, const int find_zero_bit) in bm_find_next() argument
1310 i = __bm_find_next(device, bm_fo, find_zero_bit); in bm_find_next()
1316 unsigned long drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) in drbd_bm_find_next() argument
1318 return bm_find_next(device, bm_fo, 0); in drbd_bm_find_next()
1323 unsigned long drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo)
1325 return bm_find_next(device, bm_fo, 1);
1331 unsigned long _drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) in _drbd_bm_find_next() argument
1334 return __bm_find_next(device, bm_fo, 0); in _drbd_bm_find_next()
1337 unsigned long _drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo) in _drbd_bm_find_next_zero() argument
1340 return __bm_find_next(device, bm_fo, 1); in _drbd_bm_find_next_zero()