aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_req.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-05-27 08:49:27 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-10-14 08:23:45 -0400
commit7e602c0aaf3e686c36cc742119f0f53f42e9befe (patch)
tree788ffe2a83d907cbd83b650997775eeac2bc6b1b /drivers/block/drbd/drbd_req.c
parent504c6d1b44bc6e694bdba8d9a2a4e046275b5e2b (diff)
drbd: renamed drbd_tl_epoch.n_req to drbd_tl_epoch.n_writes
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_req.c')
-rw-r--r--drivers/block/drbd/drbd_req.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c
index f761d98a4e90..976d7941f71e 100644
--- a/drivers/block/drbd/drbd_req.c
+++ b/drivers/block/drbd/drbd_req.c
@@ -521,7 +521,7 @@ void __req_mod(struct drbd_request *req, enum drbd_req_event what,
521 &mdev->newest_tle->requests); 521 &mdev->newest_tle->requests);
522 522
523 /* increment size of current epoch */ 523 /* increment size of current epoch */
524 mdev->newest_tle->n_req++; 524 mdev->newest_tle->n_writes++;
525 525
526 /* queue work item to send data */ 526 /* queue work item to send data */
527 D_ASSERT(req->rq_state & RQ_NET_PENDING); 527 D_ASSERT(req->rq_state & RQ_NET_PENDING);
@@ -530,7 +530,7 @@ void __req_mod(struct drbd_request *req, enum drbd_req_event what,
530 drbd_queue_work(&mdev->data.work, &req->w); 530 drbd_queue_work(&mdev->data.work, &req->w);
531 531
532 /* close the epoch, in case it outgrew the limit */ 532 /* close the epoch, in case it outgrew the limit */
533 if (mdev->newest_tle->n_req >= mdev->net_conf->max_epoch_size) 533 if (mdev->newest_tle->n_writes >= mdev->net_conf->max_epoch_size)
534 queue_barrier(mdev); 534 queue_barrier(mdev);
535 535
536 break; 536 break;