Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109625
b: refs/heads/master
c: 11d55d2
h: refs/heads/master
i:
  109623: 19ff67e
v: v3
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Sep 5, 2008
1 parent ab5e96d commit f3afe83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f621861fbdb1ea90c36b1a59a45cb84b4a2239f
refs/heads/master: 11d55d2cba6e867be8955e5ae011c54c556b849f
2 changes: 1 addition & 1 deletion trunk/include/linux/res_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f3afe83

Please sign in to comment.