Whamcloud - gitweb
LU-15535 revert: "LU-15284 llite: access lli_lsm_md with lock in all places"
[fs/lustre-release.git] / lustre / lmv / lmv_obd.c
index efcefcb..967270f 100644 (file)
@@ -3805,8 +3805,7 @@ static int lmv_get_fid_from_lsm(struct obd_export *exp,
 {
        const struct lmv_oinfo *oinfo;
 
-       if (!lmv_dir_striped(lsm))
-               RETURN(-ESTALE);
+       LASSERT(lmv_dir_striped(lsm));
 
        oinfo = lsm_name_to_stripe_info(lsm, name, namelen, false);
        if (IS_ERR(oinfo))