Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365409
b: refs/heads/master
c: acb6d55
h: refs/heads/master
i:
  365407: a7bd890
v: v3
  • Loading branch information
Michal Hocko authored and Linus Torvalds committed Apr 29, 2013
1 parent 3029e96 commit 44ae43b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee5df0570c8af2610b28ab79bd8f8f8195687773
refs/heads/master: acb6d558f4c8fbacc8e774c9d7737220a3777882
9 changes: 0 additions & 9 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -5025,9 +5025,6 @@ static ssize_t mem_cgroup_read(struct cgroup *cont, struct cftype *cft,
type = MEMFILE_TYPE(cft->private);
name = MEMFILE_ATTR(cft->private);

if (!do_swap_account && type == _MEMSWAP)
return -EOPNOTSUPP;

switch (type) {
case _MEM:
if (name == RES_USAGE)
Expand Down Expand Up @@ -5162,9 +5159,6 @@ static int mem_cgroup_write(struct cgroup *cont, struct cftype *cft,
type = MEMFILE_TYPE(cft->private);
name = MEMFILE_ATTR(cft->private);

if (!do_swap_account && type == _MEMSWAP)
return -EOPNOTSUPP;

switch (name) {
case RES_LIMIT:
if (mem_cgroup_is_root(memcg)) { /* Can't set limit on root */
Expand Down Expand Up @@ -5241,9 +5235,6 @@ static int mem_cgroup_reset(struct cgroup *cont, unsigned int event)
type = MEMFILE_TYPE(event);
name = MEMFILE_ATTR(event);

if (!do_swap_account && type == _MEMSWAP)
return -EOPNOTSUPP;

switch (name) {
case RES_MAX_USAGE:
if (type == _MEM)
Expand Down

0 comments on commit 44ae43b

Please sign in to comment.