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:
49da848
)
Branch HEAD
author
liuy
<liuy>
Wed, 12 Sep 2007 04:18:15 +0000
(
04:18
+0000)
committer
liuy
<liuy>
Wed, 12 Sep 2007 04:18:15 +0000
(
04:18
+0000)
b=13125
replace stripe_cnt_min with *stripe_cnt to keep good object distribution
lustre/lov/lov_qos.c
patch
|
blob
|
history
diff --git
a/lustre/lov/lov_qos.c
b/lustre/lov/lov_qos.c
index
c6ff1eb
..
260c5ca
100644
(file)
--- a/
lustre/lov/lov_qos.c
+++ b/
lustre/lov/lov_qos.c
@@
-532,8
+532,7
@@
static int alloc_rr(struct lov_obd *lov, int *idx_arr, int *stripe_cnt,
/* If we have allocated from all of the OSTs, slowly
precess the next start */
lov->lov_start_idx %= ost_count;
- if (stripe_cnt_min > 1 &&
- (ost_active_count % stripe_cnt_min) != 1)
+ if (*stripe_cnt > 1 && (ost_active_count % (*stripe_cnt)) != 1)
++lov->lov_offset_idx;
}
down_read(&lov->lov_qos.lq_rw_sem);