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