Commit cd60eb59 authored by John L. Hammond's avatar John L. Hammond Committed by Greg Kroah-Hartman

staging: lustre: ldlm: restore missing newlines in ldlm sysfs files

Restore the missing trailing newlines in
/sys/fs/lustre/ldlm/namespaces/*/lru_{max_age,size}.
Signed-off-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9109
Reviewed-on: https://review.whamcloud.com/25522Reviewed-by: default avatarJames Simmons <uja.ornl@yahoo.com>
Reviewed-by: default avatarMike Pershin <mike.pershin@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent db238504
...@@ -223,7 +223,7 @@ static ssize_t lru_size_show(struct kobject *kobj, struct attribute *attr, ...@@ -223,7 +223,7 @@ static ssize_t lru_size_show(struct kobject *kobj, struct attribute *attr,
if (ns_connect_lru_resize(ns)) if (ns_connect_lru_resize(ns))
nr = &ns->ns_nr_unused; nr = &ns->ns_nr_unused;
return sprintf(buf, "%u", *nr); return sprintf(buf, "%u\n", *nr);
} }
static ssize_t lru_size_store(struct kobject *kobj, struct attribute *attr, static ssize_t lru_size_store(struct kobject *kobj, struct attribute *attr,
...@@ -318,7 +318,7 @@ static ssize_t lru_max_age_show(struct kobject *kobj, struct attribute *attr, ...@@ -318,7 +318,7 @@ static ssize_t lru_max_age_show(struct kobject *kobj, struct attribute *attr,
struct ldlm_namespace *ns = container_of(kobj, struct ldlm_namespace, struct ldlm_namespace *ns = container_of(kobj, struct ldlm_namespace,
ns_kobj); ns_kobj);
return sprintf(buf, "%u", ns->ns_max_age); return sprintf(buf, "%u\n", ns->ns_max_age);
} }
static ssize_t lru_max_age_store(struct kobject *kobj, struct attribute *attr, static ssize_t lru_max_age_store(struct kobject *kobj, struct attribute *attr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment