S_ISLNK(inode->i_mode))
size = inode_get_bytes(inode);
- CERROR("%lu: uid: %u, size: %llu, blocks: %lu, real size: %llu\n",
+ CERROR("%lu: uid: %u, size: %llu, blocks: %llu, real size: %llu\n",
inode->i_ino, inode->i_uid, i_size_read(inode),
- inode->i_blocks, size);
+ (unsigned long long)inode->i_blocks, size);
}
/* Test quotaon */
return rc;
}
+#ifdef LPROCFS
+static struct lprocfs_vars lprocfs_quotacheck_test_obd_vars[] = { {0} };
+static struct lprocfs_vars lprocfs_quotacheck_test_module_vars[] = { {0} };
+
+void lprocfs_quotacheck_test_init_vars(struct lprocfs_static_vars *lvars)
+{
+ lvars->module_vars = lprocfs_quotacheck_test_module_vars;
+ lvars->obd_vars = lprocfs_quotacheck_test_obd_vars;
+}
+#endif
+
static int quotacheck_test_cleanup(struct obd_device *obd)
{
lprocfs_obd_cleanup(obd);
static int quotacheck_test_setup(struct obd_device *obd, struct lustre_cfg* lcfg)
{
- struct lprocfs_static_vars lvars;
+ struct lprocfs_static_vars lvars = { 0 };
struct obd_device *tgt;
int rc;
ENTRY;
if (rc)
quotacheck_test_cleanup(obd);
- lprocfs_init_vars(quotacheck_test, &lvars);
+ lprocfs_quotacheck_test_init_vars(&lvars);
lprocfs_obd_setup(obd, lvars.obd_vars);
RETURN(rc);
.o_cleanup = quotacheck_test_cleanup,
};
-#ifdef LPROCFS
-static struct lprocfs_vars lprocfs_obd_vars[] = { {0} };
-static struct lprocfs_vars lprocfs_module_vars[] = { {0} };
-LPROCFS_INIT_VARS(quotacheck_test, lprocfs_module_vars, lprocfs_obd_vars)
-#endif
-
static int __init quotacheck_test_init(void)
{
- struct lprocfs_static_vars lvars;
+ struct lprocfs_static_vars lvars = { 0 };
- lprocfs_init_vars(quotacheck_test, &lvars);
+ lprocfs_quotacheck_test_init_vars(&lvars);
return class_register_type("acheck_obd_ops, NULL, lvars.module_vars,
"quotacheck_test", NULL);
}