mm: memcontrol: remove dead code from memory_max_write()
Subsystems (2)
[email protected]
maintainerPATCH 19/158 mm: memcontrol: remove dead code from memory_max_write()
From: Johannes Weiner <[email protected]>
Subject: mm: memcontrol: remove dead code from memory_max_write()
When the reclaim loop in memory_max_write() is ^C'd or similar, we set err to -EINTR. But we don't return err. Once the limit is set, we always return success (nbytes). Delete the dead code.
Signed-off-by Johannes Weiner <[email protected]>
Acked-by Michal Hocko <[email protected]>
Cc Vladimir Davydov <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/memcontrol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcontrol-remove-dead-code-from-memory_max_write +1 -3
@@ -6139,10 +6139,8 @@ static ssize_t memory_max_write(struct kif (nr_pages <= max)break ; -if (signal_pending (current)) { - err = -EINTR ; +if (signal_pending (current))break ; - }if (!drained) {drain_all_stock (memcg);
_