mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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) <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
2b0b211134
commit
1e24edca05
5 changed files with 6 additions and 8 deletions
|
|
@ -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, \
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue