|
@@ -1311,10 +1311,10 @@ enum cgroup_filetype {
|
|
|
FILE_RELEASE_AGENT,
|
|
|
};
|
|
|
|
|
|
-static ssize_t cgroup_write_uint(struct cgroup *cgrp, struct cftype *cft,
|
|
|
- struct file *file,
|
|
|
- const char __user *userbuf,
|
|
|
- size_t nbytes, loff_t *unused_ppos)
|
|
|
+static ssize_t cgroup_write_u64(struct cgroup *cgrp, struct cftype *cft,
|
|
|
+ struct file *file,
|
|
|
+ const char __user *userbuf,
|
|
|
+ size_t nbytes, loff_t *unused_ppos)
|
|
|
{
|
|
|
char buffer[64];
|
|
|
int retval = 0;
|
|
@@ -1338,7 +1338,7 @@ static ssize_t cgroup_write_uint(struct cgroup *cgrp, struct cftype *cft,
|
|
|
return -EINVAL;
|
|
|
|
|
|
/* Pass to subsystem */
|
|
|
- retval = cft->write_uint(cgrp, cft, val);
|
|
|
+ retval = cft->write_u64(cgrp, cft, val);
|
|
|
if (!retval)
|
|
|
retval = nbytes;
|
|
|
return retval;
|
|
@@ -1419,18 +1419,18 @@ static ssize_t cgroup_file_write(struct file *file, const char __user *buf,
|
|
|
return -ENODEV;
|
|
|
if (cft->write)
|
|
|
return cft->write(cgrp, cft, file, buf, nbytes, ppos);
|
|
|
- if (cft->write_uint)
|
|
|
- return cgroup_write_uint(cgrp, cft, file, buf, nbytes, ppos);
|
|
|
+ if (cft->write_u64)
|
|
|
+ return cgroup_write_u64(cgrp, cft, file, buf, nbytes, ppos);
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
-static ssize_t cgroup_read_uint(struct cgroup *cgrp, struct cftype *cft,
|
|
|
- struct file *file,
|
|
|
- char __user *buf, size_t nbytes,
|
|
|
- loff_t *ppos)
|
|
|
+static ssize_t cgroup_read_u64(struct cgroup *cgrp, struct cftype *cft,
|
|
|
+ struct file *file,
|
|
|
+ char __user *buf, size_t nbytes,
|
|
|
+ loff_t *ppos)
|
|
|
{
|
|
|
char tmp[64];
|
|
|
- u64 val = cft->read_uint(cgrp, cft);
|
|
|
+ u64 val = cft->read_u64(cgrp, cft);
|
|
|
int len = sprintf(tmp, "%llu\n", (unsigned long long) val);
|
|
|
|
|
|
return simple_read_from_buffer(buf, nbytes, ppos, tmp, len);
|
|
@@ -1490,8 +1490,8 @@ static ssize_t cgroup_file_read(struct file *file, char __user *buf,
|
|
|
|
|
|
if (cft->read)
|
|
|
return cft->read(cgrp, cft, file, buf, nbytes, ppos);
|
|
|
- if (cft->read_uint)
|
|
|
- return cgroup_read_uint(cgrp, cft, file, buf, nbytes, ppos);
|
|
|
+ if (cft->read_u64)
|
|
|
+ return cgroup_read_u64(cgrp, cft, file, buf, nbytes, ppos);
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
@@ -2158,14 +2158,14 @@ static struct cftype files[] = {
|
|
|
|
|
|
{
|
|
|
.name = "notify_on_release",
|
|
|
- .read_uint = cgroup_read_notify_on_release,
|
|
|
+ .read_u64 = cgroup_read_notify_on_release,
|
|
|
.write = cgroup_common_file_write,
|
|
|
.private = FILE_NOTIFY_ON_RELEASE,
|
|
|
},
|
|
|
|
|
|
{
|
|
|
.name = "releasable",
|
|
|
- .read_uint = cgroup_read_releasable,
|
|
|
+ .read_u64 = cgroup_read_releasable,
|
|
|
.private = FILE_RELEASABLE,
|
|
|
}
|
|
|
};
|