aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2010-10-01 15:16:41 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-10-01 15:16:41 -0400
commit9355aede5a3c4975e0ba8bbfe2b9d1fd73308916 (patch)
tree73db212009de0e60d71d343b737d6a90449b06b8 /block/blk-cgroup.h
parent5e901a2b95db709c5e40599ff4df6029be1e2a12 (diff)
blkio-throttle: limit max iops value to UINT_MAX
- Limit max iops value to UINT_MAX and return error to user if value is more than that instead of accepting bigger values and truncating implicitly. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r--block/blk-cgroup.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index 034c35562dba..ea4861bdd549 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -20,6 +20,9 @@ enum blkio_policy_id {
20 BLKIO_POLICY_THROTL, /* Throttling */ 20 BLKIO_POLICY_THROTL, /* Throttling */
21}; 21};
22 22
23/* Max limits for throttle policy */
24#define THROTL_IOPS_MAX UINT_MAX
25
23#if defined(CONFIG_BLK_CGROUP) || defined(CONFIG_BLK_CGROUP_MODULE) 26#if defined(CONFIG_BLK_CGROUP) || defined(CONFIG_BLK_CGROUP_MODULE)
24 27
25#ifndef CONFIG_BLK_CGROUP 28#ifndef CONFIG_BLK_CGROUP