diff options
author | Tejun Heo <tj@kernel.org> | 2015-08-19 00:55:28 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-08-19 01:49:18 +0300 |
commit | 20386ce0143899ccb5bcbda714436a82d3029f33 (patch) | |
tree | f1fe9b3a30a3afce0ea20632b830007495d95b0a /mm/backing-dev.c | |
parent | 5332dfc36483d2373d980526145789a354af2d49 (diff) | |
download | linux-20386ce0143899ccb5bcbda714436a82d3029f33.tar.xz |
blkcg: refine error codes returned during blkcg configuration
blkcg currently returns -EINVAL for most errors which can be pretty
confusing given that the failure modes are quite varied. Update the
error returns so that
* -EINVAL only for syntactic errors.
* -ERANGE if the value is out of range.
* -ENODEV if the target device can't be found.
* -EOPNOTSUPP if the policy is not enabled on the target device.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'mm/backing-dev.c')
0 files changed, 0 insertions, 0 deletions