]> git.baikalelectronics.ru Git - kernel.git/commit
z3fold: add kref refcounting
authorVitaly Wool <vitalywool@gmail.com>
Fri, 24 Feb 2017 22:57:26 +0000 (14:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 01:46:54 +0000 (17:46 -0800)
commit5a27aa8220290b64cd5da066a1e29375aa867e69
tree6a2fbfc07e38793e686b6037c0388a806d29af58
parent2f1e5e4d8430f365f979a818f515123a71b640ec
z3fold: add kref refcounting

With both coming and already present locking optimizations, introducing
kref to reference-count z3fold objects is the right thing to do.
Moreover, it makes buddied list no longer necessary, and allows for a
simpler handling of headless pages.

[akpm@linux-foundation.org: coding-style fixes]
Link: http://lkml.kernel.org/r/20170131214650.8ea78033d91ded233f552bc0@gmail.com
Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Reviewed-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/z3fold.c