sprintf(name, "%s-%d", profile, version);
}
CWARN("Applying configuration log %s\n", name);
- mds->mds_config_generation++;
push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
ctxt = llog_get_context(&obd->obd_llogs, LLOG_CONFIG_ORIG_CTXT);
GOTO(exit, rc);
}
/* retrieve size of EA */
- if (mds->mds_md_exp) {
- rc = obd_get_info(mds->mds_md_exp, strlen("mdsize"),
- "mdsize", &valsize, &value);
-
- if (value > mds->mds_max_mdsize)
- mds->mds_max_mdsize = value;
+ rc = obd_get_info(mds->mds_md_exp, strlen("mdsize"),
+ "mdsize", &valsize, &value);
+
+ if (value > mds->mds_max_mdsize)
+ mds->mds_max_mdsize = value;
- CDEBUG(D_INFO, "mds max md size %d \n", mds->mds_max_mdsize);
- }
+ CDEBUG(D_INFO, "mds max md size %d \n", mds->mds_max_mdsize);
if (rc == 0)
mds->mds_config_version = version;
/* Must be called with i_sem held */
int mds_revalidate_lov_ea(struct obd_device *obd, struct dentry *dentry,
- struct lustre_msg *msg, int offset, int *changed)
+ struct lustre_msg *msg, int offset)
{
struct mds_obd *mds = &obd->u.mds;
struct obd_export *dt_exp = mds->mds_dt_exp;
void *handle;
ENTRY;
- *changed = 0;
LASSERT(down_trylock(&inode->i_sem) != 0);
ll_id2str(idname, inode->i_ino, inode->i_generation);
GOTO(out_oa, rc);
}
- *changed = 1;
rc = obd_packmd(dt_exp, &lmm, lsm);
if (rc < 0)
GOTO(out_oa, rc);