#include <linux/lustre_lite.h>
#include <linux/lprocfs_status.h>
+#include "llite_internal.h"
+
/* /proc/lustre/llite mount point registration */
#ifndef LPROCFS
{ "filestotal", rd_filestotal, 0, 0 },
{ "filesfree", rd_filesfree, 0, 0 },
{ "filegroups", rd_filegroups, 0, 0 },
+ { "dirty_pages", ll_rd_dirty_pages, 0, 0},
+ { "max_dirty_pages", ll_rd_max_dirty_pages, ll_wr_max_dirty_pages, 0},
{ 0 }
};
const char *opname;
} llite_opcode_table[LPROC_LL_FILE_OPCODES] = {
/* file operation */
- { LPROC_LL_DIRTY_PAGES, LPROCFS_CNTR_AVGMINMAX|LPROCFS_TYPE_PAGES,
- "dirty_pages" },
{ LPROC_LL_DIRTY_HITS, LPROCFS_TYPE_REGS, "dirty_pages_hits" },
{ LPROC_LL_DIRTY_MISSES, LPROCFS_TYPE_REGS, "dirty_pages_misses" },
{ LPROC_LL_WB_WRITEPAGE, LPROCFS_CNTR_AVGMINMAX|LPROCFS_TYPE_PAGES,
struct ll_sb_info *sbi = ll_s2sbi(sb);
struct obd_device *obd;
char name[MAX_STRING_SIZE + 1];
- struct obd_uuid uuid;
int err, id;
struct lprocfs_stats *svc_stats = NULL;
ENTRY;
goto out;
/* MDC info */
- strncpy(uuid.uuid, mdc, sizeof(uuid.uuid));
- obd = class_uuid2obd(&uuid);
+ obd = class_name2obd(mdc);
LASSERT(obd != NULL);
LASSERT(obd->obd_type != NULL);
goto out;
/* OSC */
- strncpy(uuid.uuid, osc, sizeof(uuid.uuid));
- obd = class_uuid2obd(&uuid);
+ obd = class_name2obd(osc);
LASSERT(obd != NULL);
LASSERT(obd->obd_type != NULL);