Whamcloud - gitweb
LU-9109 ldlm: restore missing newlines in ldlm sysfs files 22/25522/3
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 17 Feb 2017 17:23:49 +0000 (11:23 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 1 Mar 2017 05:12:54 +0000 (05:12 +0000)
Restore the missing trailing newlines in
/sys/fs/lustre/ldlm/namespaces/*/lru_{max_age,size}.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ib9acf8ea6126a16f89da86cfaeadf7685d5c802c
Reviewed-on: https://review.whamcloud.com/25522
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Jenkins
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ldlm/ldlm_resource.c

index 12d90b1..52036fb 100644 (file)
@@ -311,7 +311,7 @@ static ssize_t lru_size_show(struct kobject *kobj, struct attribute *attr,
 
        if (ns_connect_lru_resize(ns))
                nr = &ns->ns_nr_unused;
 
        if (ns_connect_lru_resize(ns))
                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,
@@ -406,7 +406,7 @@ static ssize_t lru_max_age_show(struct kobject *kobj, struct attribute *attr,
        struct ldlm_namespace *ns = container_of(kobj, struct ldlm_namespace,
                                                 ns_kobj);
 
        struct ldlm_namespace *ns = container_of(kobj, struct ldlm_namespace,
                                                 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,