*lenp = 0;
return 0;
}
- if (write)
+ if (write)
return -EINVAL;
-
+
len = snprintf(buf, sizeof(buf), LPU64"\n", obd_memory_sum());
if (len > *lenp)
len = *lenp;
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))
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 {