From b5c698b88b1b54f7049c020b29c5e9e196e5f413 Mon Sep 17 00:00:00 2001 From: tianzy Date: Wed, 8 Oct 2008 10:35:18 +0000 Subject: [PATCH] Branch b1_8_gate 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/include/lustre_quota.h b/lustre/include/lustre_quota.h index ee1d0a1..b8f24c1 100644 --- a/lustre/include/lustre_quota.h +++ b/lustre/include/lustre_quota.h @@ -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 -- 1.8.3.1