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>
This commit is contained in:

committed by
Ingo Molnar

parent
2b0b211134
commit
1e24edca05
@@ -256,7 +256,7 @@ struct fuse_io_priv {
|
||||
|
||||
#define FUSE_IO_PRIV_SYNC(f) \
|
||||
{ \
|
||||
.refcnt = { ATOMIC_INIT(1) }, \
|
||||
.refcnt = KREF_INIT(1), \
|
||||
.async = 0, \
|
||||
.file = f, \
|
||||
}
|
||||
|
Reference in New Issue
Block a user