Memory Resource Controller use strstrip while parsing arguments
The memory controller has a requirement that while writing values, we need to use echo -n. This patch fixes the problem and makes the UI more consistent. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: Paul Menage <menage@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -113,6 +113,7 @@ ssize_t res_counter_write(struct res_counter *counter, int member,
|
||||
|
||||
ret = -EINVAL;
|
||||
|
||||
strstrip(buf);
|
||||
if (write_strategy) {
|
||||
if (write_strategy(buf, &tmp)) {
|
||||
goto out_free;
|
||||
|
Reference in New Issue
Block a user