"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drbd/drbd_main.c" between
drbd-9.1.8.tar.gz and drbd-9.1.9.tar.gz

About: DRBD (9.x) is a block device which is designed to build high availability clusters. This is done by mirroring a whole block device via (a dedicated) network. You could see it as a "network RAID-1". The driver code got integrated into the vanilla Linux kernel.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)