Whamcloud - gitweb
LU-11359 mdt: fix mdt_dom_discard_data() timeouts
[fs/lustre-release.git] / lustre / osc / osc_cache.c
index 3e179c1..ea721ba 100644 (file)
@@ -3032,7 +3032,7 @@ int osc_cache_writeback_range(const struct lu_env *env, struct osc_object *obj,
                                /* the only discarder is lock cancelling, so
                                 * [start, end] must contain this extent */
                                EASSERT(ext->oe_start >= start &&
-                                       ext->oe_max_end <= end, ext);
+                                       ext->oe_end <= end, ext);
                                osc_extent_state_set(ext, OES_LOCKING);
                                ext->oe_owner = current;
                                list_move_tail(&ext->oe_link,