Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157420
b: refs/heads/master
c: 4a558dd
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and Catalin Marinas committed Sep 8, 2009
1 parent 591bd82 commit 663696e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 179a8100e12d0053f4b368ea3358dd9a0fc6cb94
refs/heads/master: 4a558dd6f93d419cd318958577e25492bd09e960
8 changes: 4 additions & 4 deletions trunk/mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,17 +308,17 @@ static void hex_dump_object(struct seq_file *seq,
* Newly created objects don't have any color assigned (object->count == -1)
* before the next memory scan when they become white.
*/
static int color_white(const struct kmemleak_object *object)
static bool color_white(const struct kmemleak_object *object)
{
return object->count != -1 && object->count < object->min_count;
}

static int color_gray(const struct kmemleak_object *object)
static bool color_gray(const struct kmemleak_object *object)
{
return object->min_count != -1 && object->count >= object->min_count;
}

static int color_black(const struct kmemleak_object *object)
static bool color_black(const struct kmemleak_object *object)
{
return object->min_count == -1;
}
Expand All @@ -328,7 +328,7 @@ static int color_black(const struct kmemleak_object *object)
* not be deleted and have a minimum age to avoid false positives caused by
* pointers temporarily stored in CPU registers.
*/
static int unreferenced_object(struct kmemleak_object *object)
static bool unreferenced_object(struct kmemleak_object *object)
{
return (object->flags & OBJECT_ALLOCATED) && color_white(object) &&
time_before_eq(object->jiffies + jiffies_min_age,
Expand Down

0 comments on commit 663696e

Please sign in to comment.