Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Tue, 17 Oct 2006 11:16:17 +0000 (11:16 +0000)
committerwangdi <wangdi>
Tue, 17 Oct 2006 11:16:17 +0000 (11:16 +0000)
check group correctly for filter precreate

lustre/obdfilter/filter.c

index 8827ca3..5fb77d9 100644 (file)
@@ -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);