[DRBD-cvs] drbd by phil; Update read/write statistic counters in ...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Thu, 6 May 2004 18:52:10 +0200 (CEST)
DRBD CVS committal
Author : phil
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
drbd_req-2.4.c
Log Message:
Update read/write statistic counters in drbd_req
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/drbd_req-2.4.c,v
retrieving revision 1.33.2.69
retrieving revision 1.33.2.70
diff -u -3 -r1.33.2.69 -r1.33.2.70
--- drbd_req-2.4.c 5 May 2004 13:25:15 -0000 1.33.2.69
+++ drbd_req-2.4.c 6 May 2004 16:52:05 -0000 1.33.2.70
@@ -324,6 +324,8 @@
* They already have a reference count (sort of...)
* on mdev via inc_local()
*/
+ if(rw == WRITE) mdev->writ_cnt += size>>9;
+ else mdev->read_cnt += size>>9;
drbd_generic_make_request(rw,&req->private_bio);
}