diff options
Diffstat (limited to 'include/linux/res_counter.h')
-rw-r--r-- | include/linux/res_counter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/res_counter.h b/include/linux/res_counter.h index fdeadd9740dc..271c1c2c9f6f 100644 --- a/include/linux/res_counter.h +++ b/include/linux/res_counter.h | |||
@@ -166,7 +166,7 @@ static inline int res_counter_set_limit(struct res_counter *cnt, | |||
166 | int ret = -EBUSY; | 166 | int ret = -EBUSY; |
167 | 167 | ||
168 | spin_lock_irqsave(&cnt->lock, flags); | 168 | spin_lock_irqsave(&cnt->lock, flags); |
169 | if (cnt->usage < limit) { | 169 | if (cnt->usage <= limit) { |
170 | cnt->limit = limit; | 170 | cnt->limit = limit; |
171 | ret = 0; | 171 | ret = 0; |
172 | } | 172 | } |