aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/memcontrol.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 496ab700e0a4..d12795cc7622 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -880,17 +880,6 @@ static ssize_t mem_force_empty_write(struct cgroup *cont,
880 return ret; 880 return ret;
881} 881}
882 882
883/*
884 * Note: This should be removed if cgroup supports write-only file.
885 */
886static ssize_t mem_force_empty_read(struct cgroup *cont,
887 struct cftype *cft,
888 struct file *file, char __user *userbuf,
889 size_t nbytes, loff_t *ppos)
890{
891 return -EINVAL;
892}
893
894static const struct mem_cgroup_stat_desc { 883static const struct mem_cgroup_stat_desc {
895 const char *msg; 884 const char *msg;
896 u64 unit; 885 u64 unit;
@@ -947,7 +936,6 @@ static struct cftype mem_cgroup_files[] = {
947 { 936 {
948 .name = "force_empty", 937 .name = "force_empty",
949 .write = mem_force_empty_write, 938 .write = mem_force_empty_write,
950 .read = mem_force_empty_read,
951 }, 939 },
952 { 940 {
953 .name = "stat", 941 .name = "stat",