aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-08-25 10:59:58 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2014-02-17 10:50:43 -0500
commitd448a2e1e3d02f8f19111191d490b7e0a5eb70ea (patch)
treec754db4adad62aae61b4e675de0d984caf3f95dd /drivers/block/drbd
parent4d010392f416829005e85c337310b8feb65f877b (diff)
drbd: Turn w_make_ov_request and make_resync_request into "normal" functions
These functions are not used as drbd_work callbacks. Signed-off-by: Andreas Gruenbacher <agruen@linbit.com> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd')
-rw-r--r--drivers/block/drbd/drbd_worker.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c
index 6867aa601781..c0ee7032f607 100644
--- a/drivers/block/drbd/drbd_worker.c
+++ b/drivers/block/drbd/drbd_worker.c
@@ -39,8 +39,8 @@
39#include "drbd_protocol.h" 39#include "drbd_protocol.h"
40#include "drbd_req.h" 40#include "drbd_req.h"
41 41
42static int w_make_ov_request(struct drbd_work *, int); 42static int make_ov_request(struct drbd_device *, int);
43static int w_make_resync_request(struct drbd_work *, int); 43static int make_resync_request(struct drbd_device *, int);
44 44
45/* endio handlers: 45/* endio handlers:
46 * drbd_md_io_complete (defined here) 46 * drbd_md_io_complete (defined here)
@@ -427,10 +427,10 @@ int w_resync_timer(struct drbd_work *w, int cancel)
427 427
428 switch (device->state.conn) { 428 switch (device->state.conn) {
429 case C_VERIFY_S: 429 case C_VERIFY_S:
430 w_make_ov_request(w, cancel); 430 make_ov_request(device, cancel);
431 break; 431 break;
432 case C_SYNC_TARGET: 432 case C_SYNC_TARGET:
433 w_make_resync_request(w, cancel); 433 make_resync_request(device, cancel);
434 break; 434 break;
435 } 435 }
436 436
@@ -565,10 +565,8 @@ static int drbd_rs_number_requests(struct drbd_device *device)
565 return number; 565 return number;
566} 566}
567 567
568static int w_make_resync_request(struct drbd_work *w, int cancel) 568static int make_resync_request(struct drbd_device *device, int cancel)
569{ 569{
570 struct drbd_device_work *dw = device_work(w);
571 struct drbd_device *device = dw->device;
572 unsigned long bit; 570 unsigned long bit;
573 sector_t sector; 571 sector_t sector;
574 const sector_t capacity = drbd_get_capacity(device->this_bdev); 572 const sector_t capacity = drbd_get_capacity(device->this_bdev);
@@ -730,9 +728,8 @@ next_sector:
730 return 0; 728 return 0;
731} 729}
732 730
733static int w_make_ov_request(struct drbd_work *w, int cancel) 731static int make_ov_request(struct drbd_device *device, int cancel)
734{ 732{
735 struct drbd_device *device = device_work(w)->device;
736 int number, i, size; 733 int number, i, size;
737 sector_t sector; 734 sector_t sector;
738 const sector_t capacity = drbd_get_capacity(device->this_bdev); 735 const sector_t capacity = drbd_get_capacity(device->this_bdev);