Skip to content
Snippets Groups Projects
Commit 192ccb0f authored by tianzy's avatar tianzy
Browse files

Branch b1_8

add quota statistics and sort out quota lproc code.
b=15058
i=johann
i=andrew.perepechko
parent 3da4de7b
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
# define EXPORT_SYMTAB # define EXPORT_SYMTAB
#endif #endif
#define DEBUG_SUBSYSTEM S_MDS #define DEBUG_SUBSYSTEM S_LQUOTA
#include <linux/version.h> #include <linux/version.h>
#include <linux/fs.h> #include <linux/fs.h>
...@@ -322,7 +322,7 @@ int dqacq_adjust_qunit_sz(struct obd_device *obd, qid_t id, int type, ...@@ -322,7 +322,7 @@ int dqacq_adjust_qunit_sz(struct obd_device *obd, qid_t id, int type,
/* only when block qunit is reduced, boardcast to osts */ /* only when block qunit is reduced, boardcast to osts */
if ((adjust_res & LQS_BLK_DECREASE) && QAQ_IS_ADJBLK(oqaq)) if ((adjust_res & LQS_BLK_DECREASE) && QAQ_IS_ADJBLK(oqaq))
rc = obd_quota_adjust_qunit(mds->mds_osc_exp, oqaq); rc = obd_quota_adjust_qunit(mds->mds_osc_exp, oqaq, qctxt);
out: out:
lustre_dqput(dquot); lustre_dqput(dquot);
...@@ -1227,7 +1227,7 @@ static int mds_init_slave_blimits(struct obd_device *obd, ...@@ -1227,7 +1227,7 @@ static int mds_init_slave_blimits(struct obd_device *obd,
* this is will create a lqs for every ost, which will present * this is will create a lqs for every ost, which will present
* certain uid/gid is set quota or not */ * certain uid/gid is set quota or not */
QAQ_SET_ADJBLK(oqaq); QAQ_SET_ADJBLK(oqaq);
rc = obd_quota_adjust_qunit(mds->mds_osc_exp, oqaq); rc = obd_quota_adjust_qunit(mds->mds_osc_exp, oqaq, qctxt);
EXIT; EXIT;
out: out:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment