+static int mds_fs_post_setup(struct obd_device *obd)
+{
+ struct mds_obd *mds = &obd->u.mds;
+ struct dentry *de = mds_fid2dentry(mds, &mds->mds_rootfid, NULL);
+ int rc = 0;
+
+ rc = fsfilt_post_setup(obd);
+ if (rc)
+ GOTO(out, rc);
+
+ fsfilt_set_kml_flags(obd, de->d_inode);
+ fsfilt_set_kml_flags(obd, mds->mds_pending_dir->d_inode);
+
+ fsfilt_set_mds_flags(obd, mds->mds_sb);
+out:
+ l_dput(de);
+ return rc;
+}
+