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-15049 quota: fix a panic with pool number > 16
[fs/lustre-release.git]
/
lustre
/
quota
/
qmt_pool.c
diff --git
a/lustre/quota/qmt_pool.c
b/lustre/quota/qmt_pool.c
index
8d4fee7
..
755effd
100644
(file)
--- a/
lustre/quota/qmt_pool.c
+++ b/
lustre/quota/qmt_pool.c
@@
-312,7
+312,7
@@
static inline int qti_pools_add(const struct lu_env *env,
LASSERTF(qti->qti_pools_num >= QMT_MAX_POOL_NUM,
"Forgot init? %p\n", qti);
LASSERTF(qti->qti_pools_num >= QMT_MAX_POOL_NUM,
"Forgot init? %p\n", qti);
- if (qti->qti_pools_cnt > qti->qti_pools_num) {
+ if (qti->qti_pools_cnt >
=
qti->qti_pools_num) {
OBD_ALLOC(pools, sizeof(qpi) * qti->qti_pools_num * 2);
if (!pools)
return -ENOMEM;
OBD_ALLOC(pools, sizeof(qpi) * qti->qti_pools_num * 2);
if (!pools)
return -ENOMEM;