From: wangdi Date: Tue, 17 Oct 2006 11:16:17 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~482 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=8f3ad5c25c28bea178d28c0a0b57119f37f71988;p=fs%2Flustre-release.git Branch: b_new_cmd check group correctly for filter precreate --- diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 8827ca3..5fb77d9 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -3134,7 +3134,7 @@ static int filter_handle_precreate(struct obd_export *exp, struct obdo *oa, GOTO(out, rc = 0); } /* only precreate if group == 0 and o_id is specfied */ - if (group != 0 || oa->o_id == 0) + if (group < FILTER_GROUP_MDS0 || oa->o_id == 0) diff = 1; else diff = oa->o_id - filter_last_id(filter, group);