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=19044
[fs/lustre-release.git]
/
lustre
/
mdd
/
mdd_orphans.c
diff --git
a/lustre/mdd/mdd_orphans.c
b/lustre/mdd/mdd_orphans.c
index
e587094
..
f4ea74b
100644
(file)
--- a/
lustre/mdd/mdd_orphans.c
+++ b/
lustre/mdd/mdd_orphans.c
@@
-120,7
+120,7
@@
static inline void mdd_orphan_write_lock(const struct lu_env *env,
{
struct dt_object *dor = mdd->mdd_orphans;
- dor->do_ops->do_write_lock(env, dor, MOR_TGT_
CHILD
);
+ dor->do_ops->do_write_lock(env, dor, MOR_TGT_
ORPHAN
);
}
static inline void mdd_orphan_write_unlock(const struct lu_env *env,
@@
-343,9
+343,10
@@
static int orph_key_test_and_del(const struct lu_env *env,
rc = -EBUSY;
if (mdo->mod_count == 0) {
- CWARN("Found orphan!\n");
+ CWARN("Found orphan!
Delete it
\n");
rc = orphan_object_destroy(env, mdo, key);
} else {
+ CDEBUG(D_HA, "Found orphan, open count = %d\n", mdo->mod_count);
mdo->mod_flags |= ORPHAN_OBJ;
}
@@
-373,7
+374,7
@@
static int orph_index_iterate(const struct lu_env *env,
iops = &dor->do_index_ops->dio_it;
it = iops->init(env, dor, BYPASS_CAPA);
if (it != NULL) {
- result = iops->
get(env, it, (const void *)""
);
+ result = iops->
load(env, it, 0
);
if (result > 0) {
/* main cycle */
do {