Whamcloud - gitweb
Branch b1_8_gate
authortianzy <tianzy>
Wed, 8 Oct 2008 10:35:18 +0000 (10:35 +0000)
committertianzy <tianzy>
Wed, 8 Oct 2008 10:35:18 +0000 (10:35 +0000)
Fix writing over quota too much. Add a proc entry so that sync writes can
be triggered earlier, which improve accuracy of quota.
b=16642
i=johann
i=panda

lustre/include/lustre_quota.h

index ee1d0a1..b8f24c1 100644 (file)
@@ -264,6 +264,9 @@ struct lustre_quota_ctxt {
                                              * adjusting qunit size. How many
                                              * seconds must be waited between
                                              * enlarging and shinking qunit */
+        int           lqc_sync_blk;         /* when blk qunit reaches this value,
+                                             * later write reqs from client
+                                             * should be sync b=16642 */
         spinlock_t    lqc_lock;         /* guard lqc_imp_valid now */
         cfs_waitq_t   lqc_wait_for_qmaster; /* when mds isn't connected, threads
                                              * on osts who send the quota reqs