Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320787
b: refs/heads/master
c: c59e261
h: refs/heads/master
i:
  320785: 78ac3f3
  320783: d8e34a3
v: v3
  • Loading branch information
Gavin Shan authored and Linus Torvalds committed Aug 1, 2012
1 parent adb6097 commit dd4ee3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 3c935d189be9bb877c5a1110ac5fbf9c8e310658
refs/heads/master: c59e26104e3e0e952cd7d63e79cd71ee5a9ec25a
4 changes: 2 additions & 2 deletions trunk/include/linux/compaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static inline bool compaction_deferred(struct zone *zone, int order)
if (++zone->compact_considered > defer_limit)
zone->compact_considered = defer_limit;

return zone->compact_considered < (1UL << zone->compact_defer_shift);
return zone->compact_considered < defer_limit;
}

#else
Expand All @@ -85,7 +85,7 @@ static inline void defer_compaction(struct zone *zone, int order)

static inline bool compaction_deferred(struct zone *zone, int order)
{
return 1;
return true;
}

#endif /* CONFIG_COMPACTION */
Expand Down

0 comments on commit dd4ee3c

Please sign in to comment.