- /*It will check whether the lov_off and stripeno
- *are in the same extent.
- *1) lov_off extent < stripeno extent, ret = -1, obdoff = 0
- *2) lov_off extent > stripeno extent, ret = 1,
- * obdoff = lov_off extent offset*/
- l_off = lsm_op_find(magic)->lsm_stripe_offset_by_index(lsm, stripeno);
- s_off = lsm_op_find(magic)->lsm_stripe_offset_by_offset(lsm, lov_off);
- if (s_off < l_off) {
- ret = -1;
- *obdoff = 0;
- return ret;
- } else if (s_off > l_off) {
- ret = 1;
- *obdoff = s_off;
- return ret;
- }
- /*If they are in the same extent, original logic*/