Whamcloud - gitweb
LU-13102 llog: fix processing of a wrapped catalog
[fs/lustre-release.git] / lustre / obdclass / obd_sysfs.c
index 7e1b277..35e4cd5 100644 (file)
@@ -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;
        }