From f3afe83813e4a74c36c68063abc989e471acc738 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Fri, 5 Sep 2008 14:00:18 -0700 Subject: [PATCH] --- yaml --- r: 109625 b: refs/heads/master c: 11d55d2cba6e867be8955e5ae011c54c556b849f h: refs/heads/master i: 109623: 19ff67eadbb7749544847594960409adb109c7d7 v: v3 --- [refs] | 2 +- trunk/include/linux/res_counter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3e7fc49c144c..c36325c0ea60 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7f621861fbdb1ea90c36b1a59a45cb84b4a2239f +refs/heads/master: 11d55d2cba6e867be8955e5ae011c54c556b849f diff --git a/trunk/include/linux/res_counter.h b/trunk/include/linux/res_counter.h index fdeadd9740dc..271c1c2c9f6f 100644 --- a/trunk/include/linux/res_counter.h +++ b/trunk/include/linux/res_counter.h @@ -166,7 +166,7 @@ static inline int res_counter_set_limit(struct res_counter *cnt, int ret = -EBUSY; spin_lock_irqsave(&cnt->lock, flags); - if (cnt->usage < limit) { + if (cnt->usage <= limit) { cnt->limit = limit; ret = 0; }