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:
1d66230
)
set handler in object_init() when that handler is initialized already
author
tappro
<tappro>
Thu, 24 Aug 2006 15:39:48 +0000
(15:39 +0000)
committer
tappro
<tappro>
Thu, 24 Aug 2006 15:39:48 +0000
(15:39 +0000)
lustre/cmm/cmm_object.c
patch
|
blob
|
history
diff --git
a/lustre/cmm/cmm_object.c
b/lustre/cmm/cmm_object.c
index
8b84cdd
..
468ee7f
100644
(file)
--- a/
lustre/cmm/cmm_object.c
+++ b/
lustre/cmm/cmm_object.c
@@
-124,7
+124,6
@@
struct lu_object *cmm_object_alloc(const struct lu_context *ctx,
cro->cmm_obj.cmo_obj.mo_dir_ops = &cmr_dir_ops;
lo->lo_ops = &cmr_obj_ops;
cro->cmo_num = mdsnum;
- lo->lo_header->loh_attr |= LOHA_REMOTE;
}
}
RETURN(lo);
@@
-508,6
+507,7
@@
static int cmr_object_init(const struct lu_context *ctx, struct lu_object *lo)
if (c_dev == NULL) {
rc = -ENOENT;
} else {
+ lo->lo_header->loh_attr |= LOHA_REMOTE;
c_obj = c_dev->ld_ops->ldo_object_alloc(ctx,
lo->lo_header, c_dev);
if (c_obj != NULL) {