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-882 quota: Quota code compares unsigned < 0
[fs/lustre-release.git]
/
lustre
/
quota
/
quota_interface.c
diff --git
a/lustre/quota/quota_interface.c
b/lustre/quota/quota_interface.c
index
fbf6ee5
..
01dc6ac
100644
(file)
--- a/
lustre/quota/quota_interface.c
+++ b/
lustre/quota/quota_interface.c
@@
-333,6
+333,8
@@
static int quota_check_common(struct obd_device *obd, const unsigned int id[],
else
pending[i] += mb;
}
+ LASSERTF(pending[i] >= 0, "pending is not valid"
+ ", count=%d, mb=%d\n", count, mb);
lqs->lqs_bwrite_pending += pending[i];
} else {
pending[i] = count;