mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
staging/lustre: Fix max_dirty_mb output in sysfs
%ul definitely was supposed to be %lu in the format string, so we print long unsigned int value, not just unsigned int with a letter l added at the end. Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d6e7a2fe93
commit
44fae22b36
1 changed files with 3 additions and 2 deletions
|
@ -95,8 +95,9 @@ LUSTRE_STATIC_UINT_ATTR(timeout, &obd_timeout);
|
||||||
static ssize_t max_dirty_mb_show(struct kobject *kobj, struct attribute *attr,
|
static ssize_t max_dirty_mb_show(struct kobject *kobj, struct attribute *attr,
|
||||||
char *buf)
|
char *buf)
|
||||||
{
|
{
|
||||||
return sprintf(buf, "%ul\n",
|
return sprintf(buf, "%lu\n",
|
||||||
obd_max_dirty_pages / (1 << (20 - PAGE_SHIFT)));
|
(unsigned long)obd_max_dirty_pages /
|
||||||
|
(1 << (20 - PAGE_SHIFT)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t max_dirty_mb_store(struct kobject *kobj, struct attribute *attr,
|
static ssize_t max_dirty_mb_store(struct kobject *kobj, struct attribute *attr,
|
||||||
|
|
Loading…
Reference in a new issue