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
b=21147 be tolerant to setting the same type and version of quota
[fs/lustre-release.git]
/
lustre
/
lvfs
/
upcall_cache.c
diff --git
a/lustre/lvfs/upcall_cache.c
b/lustre/lvfs/upcall_cache.c
index
34579cb
..
6ad44b2
100644
(file)
--- a/
lustre/lvfs/upcall_cache.c
+++ b/
lustre/lvfs/upcall_cache.c
@@
-216,7
+216,7
@@
static int entry_set_group_info(struct upcall_cache_entry *entry, __u32 primary,
entry->ue_primary = primary;
for (i = 0; i < ginfo->nblocks; i++) {
- int cp_count = min
(NGROUPS_PER_BLOCK, (int)
ngroups);
+ int cp_count = min
_t(int, NGROUPS_PER_BLOCK,
ngroups);
int off = i * NGROUPS_PER_BLOCK;
for (j = 0; j < cp_count; j++)