mm: kmemleak: factor object reference updating out of scan_block()
authorCatalin Marinas <[email protected]>
Thu, 6 Jul 2017 22:40:19 +0000 (15:40 -0700)
committerLinus Torvalds <[email protected]>
Thu, 6 Jul 2017 23:24:34 +0000 (16:24 -0700)
commit04f70d13ca274d62a347815ca01fea871f9b9a40
tree36177117ab748aeb55b03a1e2b54e4f7ab35305c
parentf66abf09e092fde88fec3c93d0b0c704e18224b8
mm: kmemleak: factor object reference updating out of scan_block()

scan_block() updates the number of references (pointers) to objects,
adding them to the gray_list when object->min_count is reached.  The
patch factors out this functionality into a separate update_refs()
function.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: "Luis R. Rodriguez" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/kmemleak.c