Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce58694
)
- another one fix to avoid memleak
author
tappro
<tappro>
Fri, 20 Oct 2006 05:32:33 +0000
(
05:32
+0000)
committer
tappro
<tappro>
Fri, 20 Oct 2006 05:32:33 +0000
(
05:32
+0000)
lustre/cmm/cmm_split.c
patch
|
blob
|
history
diff --git
a/lustre/cmm/cmm_split.c
b/lustre/cmm/cmm_split.c
index
f4292a8
..
df79b78
100644
(file)
--- a/
lustre/cmm/cmm_split.c
+++ b/
lustre/cmm/cmm_split.c
@@
-75,11
+75,8
@@
int cmm_mdsnum_check(const struct lu_env *env, struct md_object *mp,
/* Get LMV EA */
ma->ma_need = MA_INODE | MA_LMV;
rc = mo_attr_get(env, mp, ma);
- if (rc)
- RETURN(rc);
-
/* Skip checking the slave dirs (mea_count is 0) */
- if (ma->ma_lmv->mea_count != 0) {
+ if (
rc == 0 &&
ma->ma_lmv->mea_count != 0) {
/*
* Get stripe by name to check the name belongs to master dir,
* otherwise return the -ERESTART