Whamcloud - gitweb
LU-1247 obdfilter: fix invalid check of precrate objects
[fs/lustre-release.git] / lustre / obdfilter / filter.c
index 9dc6584..75fd01b 100644 (file)
@@ -3680,7 +3680,7 @@ static int filter_handle_precreate(struct obd_export *exp, struct obdo *oa,
                 CDEBUG(D_HA, "filter_last_id() = "LPU64" -> diff = %d\n",
                        last, diff);
 
-                if (-diff > OST_MAX_PRECREATE) {
+                if (-diff > (OST_MAX_PRECREATE * 3) / 2) {
                         CERROR("%s: ignoring bogus orphan destroy request: "
                                "obdid "LPU64" last_id "LPU64"\n", obd->obd_name,
                                oa->o_id, last);