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:
7bd0004
)
- more small fixes for pre-creation, to help bzzz make progress.
author
braam
<braam>
Tue, 19 Aug 2003 07:08:47 +0000
(07:08 +0000)
committer
braam
<braam>
Tue, 19 Aug 2003 07:08:47 +0000
(07:08 +0000)
- set o_id as a hint upon creation.
lustre/osc/osc_create.c
patch
|
blob
|
history
diff --git
a/lustre/osc/osc_create.c
b/lustre/osc/osc_create.c
index
56ef7e5
..
431fd3e
100644
(file)
--- a/
lustre/osc/osc_create.c
+++ b/
lustre/osc/osc_create.c
@@
-186,6
+186,10
@@
void osccd_do_create(struct osc_created *osccd)
oscc_list);
list_del_init(&oscc->oscc_list);
list_add(&oscc->oscc_list, &osccd->osccd_work_list_head);
+ spin_lock(&oscc->oscc_lock);
+ oscc->oscc_oa.o_id = oscc->oscc_last_id + oscc->oscc_grow_count;
+ oscc->oscc_oa.o_valid |= OBD_MD_FLID;
+ spin_unlock(&oscc->oscc_lock);
spin_unlock(&osccd->osccd_lock);
rc = osc_real_create(oscc->oscc_exph, &oscc->oscc_oa,