Lines Matching refs:BME_LOCKED
954 * drbd_rs_begin_io() - Gets an extent in the resync LRU cache and sets it to BME_LOCKED
973 if (test_bit(BME_LOCKED, &bm_ext->flags))
999 set_bit(BME_LOCKED, &bm_ext->flags);
1009 * tries to set it to BME_LOCKED. Returns 0 upon success, and -EAGAIN
1022 * not yet BME_LOCKED) extent needs to be kicked out explicitly if we
1047 D_ASSERT(device, !test_bit(BME_LOCKED, &bm_ext->flags));
1064 if (test_bit(BME_LOCKED, &bm_ext->flags))
1070 * but then could not set BME_LOCKED,
1097 D_ASSERT(device, test_bit(BME_LOCKED, &bm_ext->flags) == 0);
1109 set_bit(BME_LOCKED, &bm_ext->flags);
1118 D_ASSERT(device, !test_bit(BME_LOCKED, &bm_ext->flags));
1160 bm_ext->flags = 0; /* clear BME_LOCKED, BME_NO_WRITES and BME_PRIORITY */
1169 * drbd_rs_cancel_all() - Removes all extents from the resync LRU (even BME_LOCKED)
1212 D_ASSERT(device, !test_bit(BME_LOCKED, &bm_ext->flags));
1225 D_ASSERT(device, !test_bit(BME_LOCKED, &bm_ext->flags));