Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
04a47d2
)
trim trailing white spaces.
author
bobijam
<bobijam>
Tue, 5 Aug 2008 03:49:50 +0000
(
03:49
+0000)
committer
bobijam
<bobijam>
Tue, 5 Aug 2008 03:49:50 +0000
(
03:49
+0000)
lustre/obdclass/linux/linux-sysctl.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/linux/linux-sysctl.c
b/lustre/obdclass/linux/linux-sysctl.c
index
6a1e4c0
..
10f8eb9
100644
(file)
--- a/
lustre/obdclass/linux/linux-sysctl.c
+++ b/
lustre/obdclass/linux/linux-sysctl.c
@@
-106,9
+106,9
@@
int LL_PROC_PROTO(proc_memory_alloc)
*lenp = 0;
return 0;
}
*lenp = 0;
return 0;
}
- if (write)
+ if (write)
return -EINVAL;
return -EINVAL;
-
+
len = snprintf(buf, sizeof(buf), LPU64"\n", obd_memory_sum());
if (len > *lenp)
len = *lenp;
len = snprintf(buf, sizeof(buf), LPU64"\n", obd_memory_sum());
if (len > *lenp)
len = *lenp;
@@
-221,7
+221,7
@@
int LL_PROC_PROTO(proc_max_dirty_pages_in_mb)
len = lprocfs_read_frac_helper(buf, sizeof(buf),
*(unsigned int*)table->data,
1 << (20 - CFS_PAGE_SHIFT));
len = lprocfs_read_frac_helper(buf, sizeof(buf),
*(unsigned int*)table->data,
1 << (20 - CFS_PAGE_SHIFT));
- if (len > *lenp)
+ if (len > *lenp)
len = *lenp;
buf[len] = '\0';
if (copy_to_user(buffer, buf, len))
len = *lenp;
buf[len] = '\0';
if (copy_to_user(buffer, buf, len))
@@
-243,7
+243,7
@@
int LL_PROC_PROTO(proc_alloc_fail_rate)
return 0;
}
if (write) {
return 0;
}
if (write) {
- rc = lprocfs_write_frac_helper(buffer, *lenp,
+ rc = lprocfs_write_frac_helper(buffer, *lenp,
(unsigned int*)table->data,
OBD_ALLOC_FAIL_MULT);
} else {
(unsigned int*)table->data,
OBD_ALLOC_FAIL_MULT);
} else {