Whamcloud - gitweb
LU-12025 osp: allow OS_STATE_* flags from OSTs
[fs/lustre-release.git] / lustre / ofd / ofd_obd.c
index eff9138..2e74bc4 100644 (file)
@@ -849,6 +849,9 @@ int ofd_statfs(const struct lu_env *env,  struct obd_export *exp,
        if (ofd->ofd_raid_degraded)
                osfs->os_state |= OS_STATE_DEGRADED;
 
+       if (ofd->ofd_no_precreate)
+               osfs->os_state |= OS_STATE_NOPRECREATE;
+
        if (obd->obd_self_export != exp && !exp_grant_param_supp(exp) &&
            tgd->tgd_blockbits > COMPAT_BSIZE_SHIFT) {
                /*
@@ -959,7 +962,7 @@ out:
                res = ldlm_resource_get(ns, NULL, &info->fti_resid,
                                        LDLM_EXTENT, 0);
                if (!IS_ERR(res)) {
-                       ldlm_res_lvbo_update(env, res, NULL, 0);
+                       ldlm_res_lvbo_update(res, NULL, 0);
                        ldlm_resource_putref(res);
                }
        }