Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-10467 lustre: use wait_event_idle() where appropriate.
[fs/lustre-release.git]
/
lustre
/
osd-zfs
/
osd_quota.c
diff --git
a/lustre/osd-zfs/osd_quota.c
b/lustre/osd-zfs/osd_quota.c
index
0146a7f
..
180d66d
100644
(file)
--- a/
lustre/osd-zfs/osd_quota.c
+++ b/
lustre/osd-zfs/osd_quota.c
@@
-520,13
+520,20
@@
int osd_declare_quota(const struct lu_env *env, struct osd_device *osd,
{
struct osd_thread_info *info = osd_oti_get(env);
struct lquota_id_info *qi = &info->oti_qi;
- struct qsd_instance *qsd =
osd->od_quota_slave
;
+ struct qsd_instance *qsd =
NULL
;
int rcu, rcg, rcp = 0; /* user & group & project rc */
struct thandle *th = &oh->ot_super;
bool force = !!(osd_qid_declare_flags & OSD_QID_FORCE) ||
th->th_ignore_quota;
ENTRY;
+ if (osd_qid_declare_flags & OSD_QID_INODE)
+ qsd = osd->od_quota_slave_md;
+ else if (osd_qid_declare_flags & OSD_QID_BLK)
+ qsd = osd->od_quota_slave_dt;
+ else
+ RETURN(0);
+
if (unlikely(qsd == NULL))
/* quota slave instance hasn't been allocated yet */
RETURN(0);