drbd_main.c (drbd-9.1.8) | : | drbd_main.c (drbd-9.1.9) | ||
---|---|---|---|---|
skipping to change at line 5190 | skipping to change at line 5190 | |||
* Clears all bits in the bitmap and writes the whole bitmap to stable storage. | * Clears all bits in the bitmap and writes the whole bitmap to stable storage. | |||
*/ | */ | |||
int drbd_bmio_clear_all_n_write(struct drbd_device *device, | int drbd_bmio_clear_all_n_write(struct drbd_device *device, | |||
struct drbd_peer_device *peer_device) __must_hold(loc al) | struct drbd_peer_device *peer_device) __must_hold(loc al) | |||
{ | { | |||
drbd_resume_al(device); | drbd_resume_al(device); | |||
drbd_bm_clear_all(device); | drbd_bm_clear_all(device); | |||
return drbd_bm_write(device, NULL); | return drbd_bm_write(device, NULL); | |||
} | } | |||
int drbd_bmio_clear_one_peer(struct drbd_device *device, | ||||
struct drbd_peer_device *peer_device) __must_hold(lo | ||||
cal) | ||||
{ | ||||
drbd_bm_clear_many_bits(peer_device, 0, -1UL); | ||||
return drbd_bm_write(device, NULL); | ||||
} | ||||
static int w_bitmap_io(struct drbd_work *w, int unused) | static int w_bitmap_io(struct drbd_work *w, int unused) | |||
{ | { | |||
struct bm_io_work *work = | struct bm_io_work *work = | |||
container_of(w, struct bm_io_work, w); | container_of(w, struct bm_io_work, w); | |||
struct drbd_device *device = work->device; | struct drbd_device *device = work->device; | |||
int rv = -EIO; | int rv = -EIO; | |||
if (get_ldev(device)) { | if (get_ldev(device)) { | |||
if (work->flags & BM_LOCK_SINGLE_SLOT) | if (work->flags & BM_LOCK_SINGLE_SLOT) | |||
drbd_bm_slot_lock(work->peer_device, work->why, work->fla gs); | drbd_bm_slot_lock(work->peer_device, work->why, work->fla gs); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 8 lines changed or added |