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-12719 obdclass: serialize lwp list access
[fs/lustre-release.git]
/
lustre
/
obdclass
/
obd_sysfs.c
diff --git
a/lustre/obdclass/obd_sysfs.c
b/lustre/obdclass/obd_sysfs.c
index
7e1b277
..
35e4cd5
100644
(file)
--- a/
lustre/obdclass/obd_sysfs.c
+++ b/
lustre/obdclass/obd_sysfs.c
@@
-161,7
+161,7
@@
static ssize_t max_dirty_mb_store(struct kobject *kobj, struct attribute *attr,
val *= 1 << (20 - PAGE_SHIFT); /* convert to pages */
- if (val > ((
totalram_pages
/ 10) * 9)) {
+ if (val > ((
cfs_totalram_pages()
/ 10) * 9)) {
/* Somebody wants to assign too much memory to dirty pages */
return -EINVAL;
}