[prev in list] [next in list] [prev in thread] [next in thread]
List: lustre-cvs
Subject: [Lustre-cvs] b_qos: lustre/include/linux obd.h
From: Martin Frey <freym () users ! sourceforge ! net>
Date: 2003-05-30 9:53:10
[Download RAW message or body]
Update of /cvsroot/lustre/lustre/include/linux
In directory sc8-pr-cvs1:/tmp/cvs-serv26605/include/linux
Modified Files:
Tag: b_qos
obd.h
Log Message:
eliminated 64bit divisions
Index: obd.h
===================================================================
RCS file: /cvsroot/lustre/lustre/include/linux/obd.h,v
retrieving revision 1.88.6.10.6.3
retrieving revision 1.88.6.10.6.4
diff -u -w -b -B -p -r1.88.6.10.6.3 -r1.88.6.10.6.4
--- obd.h 21 May 2003 18:49:12 -0000 1.88.6.10.6.3
+++ obd.h 30 May 2003 09:53:06 -0000 1.88.6.10.6.4
@@ -243,7 +243,12 @@ struct lov_tgt_desc {
spinlock_t tgt_lock; /* protects tgt_qos_stats updates.
Locking order: 1) lov_lock, 2) tgt_lock */
struct qos_stats tgt_qos_stats; /* qos information recv. from OST */
+#if BITS_PER_LONG < 64
+ unsigned long tgt_btotal; /* statfs total blocks / 100, shifted by tgt_shifts bits */
+ int tgt_shift; /* right shift to make tgt_btotal an unsigned long */
+#else
__u64 tgt_btotal; /* statfs total blocks / 100 on tgt */
+#endif
/* timestamps are not protected */
unsigned long qos_stats_time_sorted; /* last time entry was sorted into lists */
unsigned long qos_stats_time_stored; /* last time stats recorded */
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Lustre-cvs mailing list
Lustre-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lustre-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic