locking/atomic, kref: Add KREF_INIT()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 14 Nov 2016 16:12:23 +0000 (17:12 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 14 Jan 2017 10:37:18 +0000 (11:37 +0100)
commit1e24edca0557dba6486d39d3c24c288475432bcf
tree9ee0931fdfa80b2b2b809bd26ad2aced7c8bce33
parent2b0b211134a65401ed874ce0d5d48844f4f6f341
locking/atomic, kref: Add KREF_INIT()

Since we need to change the implementation, stop exposing internals.

Provide KREF_INIT() to allow static initialization of struct kref.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/block/drbd/drbd_bitmap.c
fs/fuse/fuse_i.h
include/linux/kref.h
init/version.c
kernel/pid.c