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:
Balbir Singh
2008-03-04 14:28:24 -08:00
committed by Linus Torvalds
부모 a10568733c
커밋 fb78922ce9
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@@ -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;