Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-10810 clio: SEEK_HOLE/SEEK_DATA on client side
[fs/lustre-release.git]
/
lustre
/
obdclass
/
obd_sysfs.c
diff --git
a/lustre/obdclass/obd_sysfs.c
b/lustre/obdclass/obd_sysfs.c
index
d79bb63
..
8e4cae2
100644
(file)
--- a/
lustre/obdclass/obd_sysfs.c
+++ b/
lustre/obdclass/obd_sysfs.c
@@
-214,7
+214,7
@@
static ssize_t version_show(struct kobject *kobj, struct attribute *attr,
static ssize_t pinger_show(struct kobject *kobj, struct attribute *attr,
char *buf)
{
static ssize_t pinger_show(struct kobject *kobj, struct attribute *attr,
char *buf)
{
-#ifdef
ENABLE
_PINGER
+#ifdef
CONFIG_LUSTRE_FS
_PINGER
const char *state = "on";
#else
const char *state = "off";
const char *state = "on";
#else
const char *state = "off";
@@
-586,31
+586,12
@@
int class_procfs_init(void)
}
debugfs_lustre_root = debugfs_create_dir("lustre", NULL);
}
debugfs_lustre_root = debugfs_create_dir("lustre", NULL);
- if (IS_ERR_OR_NULL(debugfs_lustre_root)) {
- rc = debugfs_lustre_root ? PTR_ERR(debugfs_lustre_root)
- : -ENOMEM;
- debugfs_lustre_root = NULL;
- kset_unregister(lustre_kset);
- goto out;
- }
file = debugfs_create_file("devices", 0444, debugfs_lustre_root, NULL,
&obd_device_list_fops);
file = debugfs_create_file("devices", 0444, debugfs_lustre_root, NULL,
&obd_device_list_fops);
- if (IS_ERR_OR_NULL(file)) {
- rc = file ? PTR_ERR(file) : -ENOMEM;
- debugfs_remove(debugfs_lustre_root);
- kset_unregister(lustre_kset);
- goto out;
- }
file = debugfs_create_file("health_check", 0444, debugfs_lustre_root,
NULL, &health_check_fops);
file = debugfs_create_file("health_check", 0444, debugfs_lustre_root,
NULL, &health_check_fops);
- if (IS_ERR_OR_NULL(file)) {
- rc = file ? PTR_ERR(file) : -ENOMEM;
- debugfs_remove_recursive(debugfs_lustre_root);
- kset_unregister(lustre_kset);
- goto out;
- }
entry = lprocfs_register("fs/lustre", NULL, NULL, NULL);
if (IS_ERR(entry)) {
entry = lprocfs_register("fs/lustre", NULL, NULL, NULL);
if (IS_ERR(entry)) {