+ rc = lfsck_set_windows(mdd->mdd_bottom, val);
+
+ return rc != 0 ? rc : count;
+}
+LPROC_SEQ_FOPS(mdd_lfsck_async_windows);
+
+static int mdd_lfsck_namespace_seq_show(struct seq_file *m, void *data)
+{
+ struct mdd_device *mdd = m->private;
+
+ LASSERT(mdd != NULL);
+
+ return lfsck_dump(m, mdd->mdd_bottom, LFSCK_TYPE_NAMESPACE);
+}
+LPROC_SEQ_FOPS_RO(mdd_lfsck_namespace);
+
+static int mdd_lfsck_layout_seq_show(struct seq_file *m, void *data)
+{
+ struct mdd_device *mdd = m->private;
+
+ LASSERT(mdd != NULL);
+
+ return lfsck_dump(m, mdd->mdd_bottom, LFSCK_TYPE_LAYOUT);
+}
+LPROC_SEQ_FOPS_RO(mdd_lfsck_layout);
+
+static struct lprocfs_vars lprocfs_mdd_obd_vars[] = {
+ { .name = "atime_diff",
+ .fops = &mdd_atime_diff_fops },
+ { .name = "changelog_mask",
+ .fops = &mdd_changelog_mask_fops },
+ { .name = "changelog_users",
+ .fops = &mdd_changelog_users_fops },
+ { .name = "changelog_size",
+ .fops = &mdd_changelog_size_fops },
+ { .name = "changelog_gc",
+ .fops = &mdd_changelog_gc_fops },
+ { .name = "changelog_max_idle_time",
+ .fops = &mdd_changelog_max_idle_time_fops },
+ { .name = "changelog_max_idle_indexes",
+ .fops = &mdd_changelog_max_idle_indexes_fops },
+ { .name = "changelog_min_gc_interval",
+ .fops = &mdd_changelog_min_gc_interval_fops },
+ { .name = "changelog_min_free_cat_entries",
+ .fops = &mdd_changelog_min_free_cat_entries_fops },
+ { .name = "changelog_deniednext",
+ .fops = &mdd_changelog_deniednext_fops },
+ { .name = "sync_permission",
+ .fops = &mdd_sync_perm_fops },
+ { .name = "lfsck_speed_limit",
+ .fops = &mdd_lfsck_speed_limit_fops },
+ { .name = "lfsck_async_windows",
+ .fops = &mdd_lfsck_async_windows_fops },
+ { .name = "lfsck_namespace",
+ .fops = &mdd_lfsck_namespace_fops },
+ { .name = "lfsck_layout",
+ .fops = &mdd_lfsck_layout_fops },
+ { NULL }