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-9679 mdt: use OBD_ALLOC_PTR_ARRAY() and FREE
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_identity.c
diff --git
a/lustre/mdt/mdt_identity.c
b/lustre/mdt/mdt_identity.c
index
4846345
..
246970c
100644
(file)
--- a/
lustre/mdt/mdt_identity.c
+++ b/
lustre/mdt/mdt_identity.c
@@
-57,8
+57,7
@@
static void mdt_identity_entry_free(struct upcall_cache *cache,
if (identity->mi_nperms) {
LASSERT(identity->mi_perms);
- OBD_FREE(identity->mi_perms,
- identity->mi_nperms * sizeof(struct md_perm));
+ OBD_FREE_PTR_ARRAY(identity->mi_perms, identity->mi_nperms);
identity->mi_nperms = 0;
}
}