blkio: Fix return code for mkdir calls
authorCiju Rajan K <ciju@linux.vnet.ibm.com>
Mon, 23 Aug 2010 08:56:30 +0000 (10:56 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 23 Aug 2010 08:56:30 +0000 (10:56 +0200)
If the cgroup hierarchy for blkio control groups is deeper than two
levels, kernel should not allow the creation of further levels. mkdir
system call does not except EINVAL as a return value. This patch
replaces EINVAL with more appropriate EPERM

Signed-off-by: Ciju Rajan K <ciju@linux.vnet.ibm.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

No differences found