X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flov%2Flov_qos.c;h=d114aa392d3c48f14ce51d9a43f40d8b2eeedcf5;hp=f454a59898856b0177909b756cc18ed7363251a5;hb=01138321c7ce393c189a7ed11559c0938ce9f17e;hpb=99c3dc10e445cfe299da07eec57eae04b9aa4347 diff --git a/lustre/lov/lov_qos.c b/lustre/lov/lov_qos.c index f454a59..d114aa3 100644 --- a/lustre/lov/lov_qos.c +++ b/lustre/lov/lov_qos.c @@ -1005,7 +1005,7 @@ int qos_prep_create(struct obd_export *exp, struct lov_request_set *set) LASSERT(src_oa->o_valid & OBD_MD_FLGROUP); if (set->set_oi->oi_md == NULL) { - int stripes_def = lov_get_stripecnt(lov, 0); + __u32 stripes_def = lov_get_stripecnt(lov, LOV_MAGIC, 0); /* If the MDS file was truncated up to some size, stripe over * enough OSTs to allow the file to be created at that size. @@ -1029,8 +1029,8 @@ int qos_prep_create(struct obd_export *exp, struct lov_request_set *set) if (stripes < stripes_def) stripes = stripes_def; } else { - flag = LOV_USES_DEFAULT_STRIPE; - stripes = stripes_def; + flag = LOV_USES_DEFAULT_STRIPE; + stripes = stripes_def; } rc = lov_alloc_memmd(&set->set_oi->oi_md, stripes,