summaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorPeter Zijlstra2016-11-14 17:12:23 +0100
committerIngo Molnar2017-01-14 11:37:18 +0100
commit1e24edca0557dba6486d39d3c24c288475432bcf (patch)
tree9ee0931fdfa80b2b2b809bd26ad2aced7c8bce33 /fs/fuse/fuse_i.h
parentlocking/ww_mutex: Add ww_mutex to tools/testing/selftests (diff)
downloadkernel-qcow2-linux-1e24edca0557dba6486d39d3c24c288475432bcf.tar.gz
kernel-qcow2-linux-1e24edca0557dba6486d39d3c24c288475432bcf.tar.xz
kernel-qcow2-linux-1e24edca0557dba6486d39d3c24c288475432bcf.zip
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>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 91307940c8ac..052f8d3c41cb 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -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, \
}